You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was recently integrating this library into my app and found some of the type definitions are very broad for the OneSignal.init function parameters. For ex: IInitObject.welcomeNotification and has a type of object so I had to reference the parameters from the documentation. Similarly notifiyButton, webhooks etc. are also defined as objects.
Defining and exporting these definitions and possibly adding the documentations would make integrations easier and less error prone
The text was updated successfully, but these errors were encountered:
Yep. Same for promptOptions. Has a type of object so had to do something digging to figure out that we can have actionMessage, acceptButton, and acceptCancel in there. Although, adding promptOptions is buggy because it shows the prompt right upon initing instead of when we trigger a prompt.
Hi!
I was recently integrating this library into my app and found some of the type definitions are very broad for the
OneSignal.init
function parameters. For ex:IInitObject.welcomeNotification
and has a type of object so I had to reference the parameters from the documentation. SimilarlynotifiyButton
,webhooks
etc. are also defined as objects.Defining and exporting these definitions and possibly adding the documentations would make integrations easier and less error prone
The text was updated successfully, but these errors were encountered: