-
Notifications
You must be signed in to change notification settings - Fork 77
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
fix: added missing push and reminders related types #942
Conversation
Size Change: 0 B Total Size: 298 kB ℹ️ View Unchanged
|
a9d5194
to
98659c2
Compare
roles?: string[]; | ||
roles?: string[] | null; |
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.
isn't ?
means it's nullable already?
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.
?
means string[] | undefined
which is a bit different from null
. So the result type here is string[] undefined | null
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.
yeah but does it make sense here?
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.
yeah but does it make sense here?
That's a good question :) I don't think this should be necessary
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.
not to me ... but backend sent null
in one of our test case
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.
I can remove it if we can ensure its never null
from backend response
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.
Let's keep null since this was sent from the backend
98659c2
to
d2475c6
Compare
dea0547
to
cd44660
Compare
cd44660
to
e95cc3d
Compare
Changelog
automod_threshold
reminders