-
Notifications
You must be signed in to change notification settings - Fork 390
Update Webpush types in Messaging #286
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
Conversation
@mmermerkaya thanks for putting this together. A couple of high level notes:
|
Thanks for the review! TypeScript already includes Web Notification typings, but they are in the DOM library: https://github.com/Microsoft/TypeScript/blob/v2.9.1/lib/lib.dom.d.ts#L941 If we add |
Does that mean it's part of the standard TypeScript distribution? Sounds reasonable to me. |
You should also use the same type def in the Edit: Btw it looks like some fields are missing in |
Webpush Notification is a struct now: https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#webpushconfig
baa9d76
to
6a3db24
Compare
Yep, it is part of TS. Missing options are already fixed here, just not released yet. I've done the same change in |
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.
LGTM
I'll run this by the API review team real quick before merging, since it's technically an API change. Any idea when the dom typing update will be released?
Ping, I think we can merge this now. The DOM typing update will be in TS 3.0: microsoft/TypeScript-DOM-lib-generator#438 (comment) |
@mmermerkaya I want to revisit the decision to extend from
|
We did that because we didn't want to keep changing our API whenever the spec changes. So we decided not to do any server side validation of the |
But that means changes in @jshcrowthe what do you think? |
I think I'm actually in favor of using the However I think it makes sense to just call this a |
Extending from Another point is that we are not actually shipping Casting to |
|
Ping. I can merge this myself but I want to make sure that it's okay with you. |
This is causing one of our release verification scripts to fail. Looks like the users of |
Webpush Notification is a struct now: https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#webpushconfig