[TypeScript]: export types and interfaces for reuse (still missing export in 3.0.0)
NotEvenANeko opened this issue · 2 comments
NotEvenANeko commented
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.
emawby commented
Thank you for reaching out, we will evaluate this!