react-onesignal
react-onesignal copied to clipboard
[TypeScript]: export types and interfaces for reuse (still missing export in 3.0.0)
What's on your mind?
For example, I want to make a React hook like
export const useOneSignal = (options?: Parameters<(typeof OneSignal)['init']['0']>): [ready: boolean, instance: typeof OneSignal]
and I have to use Parameters<(typeof OneSignal)['init']['0']>
instead of IInitObject
.
Export IInitObject
and other types can make this function signature easier to write.
Thank you for reaching out, we will evaluate this!
Is there any update on this? I'm working on a project where I have to implement oneSignal. The types would come in handy for creating callbacks and related hooks.