This PR fixes the useOneSignal composable by adding a return type. Currently, there is no way for the compiler to know about it (that's how provide/inject is designed), so we need to specify it.
After this PR, the following changes will occur in index.d.ts:
This PR fixes the
useOneSignal
composable by adding a return type. Currently, there is no way for the compiler to know about it (that's howprovide
/inject
is designed), so we need to specify it.After this PR, the following changes will occur in
index.d.ts
:(I also changed
const
tofunction
because it's more appropriate, though it doesn't change anything in practice for the end-user)