-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
feat(js, react, shared): user agents #6626
feat(js, react, shared): user agents #6626
Conversation
✅ Deploy Preview for novu-stg-vite-dashboard-poc ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
/** | ||
* @internal Should be used internally | ||
*/ | ||
__userAgent?: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
couldn't find a better way to make it not expose to the public
Let me know if there's a better approach.
This __userAgent
will appear in the autocomplete list if someone tries to initialise the Novu class from the @novu/js package:
const novu = new Novu()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The only other alternative is not to add a property at all and add a ts ignore when you use it ;)
89578ce
to
6e6e9ae
Compare
novu
@novu/client
@novu/headless
@novu/framework
@novu/js
@novu/node
@novu/notification-center
@novu/providers
@novu/react
@novu/shared
commit: |
/** | ||
* @internal Should be used internally | ||
*/ | ||
__userAgent?: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The only other alternative is not to add a property at all and add a ts ignore when you use it ;)
What changed? Why was the change needed?
Screenshots
Expand for optional sections
Related enterprise PR
Special notes for your reviewer