-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature]: Typescript support for the type devs #166
Comments
Hi @jaganax. Are you using our SDK through npm or our CDN? Our npm package includes the type definitions |
Hi @wesleyorbin thanks for the response, I upgraded to latest web SDK and we are using npm package on nextjs, for dynamic initializaion we could not get global metaType for braze, Is there an way for it? |
Hi @jaganax please provide some code samples so we can get a better idea of what you're trying to accomplish. Our SDK includes |
Thanks @davidbielik, I figured out using typeof for dynamic import. We can close this 👍 Updating braze developer guide to use samples to work with 5.6.1 will be more helpful. It still uses 4.4 |
Thanks @jaganax can you link to where that needs updating and provide a snippet of the context you needed a dynamic import? I'll go ahead and update docs based on that for future developers. Thanks! |
My bad realised the documentation is specific to js and not ts. closing this issue |
What problem are you facing?
I see a challenge as the types support is not there for web sdk and majority of dev ecosystem requires typescript types.
Workarounds
Currently you can define types for the methods you use within your code of your own.
Ideal Solution
Full type support for web sdk.
Other Information
No response
The text was updated successfully, but these errors were encountered: