Uh oh!
There was an error while loading. Please reload this page.
Update Webpush types in Messaging - #286
Conversation
hiranya911
commented
Jun 1, 2018
@mmermerkaya thanks for putting this together. A couple of high level notes:
|
mmermerkaya
commented
Jun 1, 2018
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 |
hiranya911
commented
Jun 1, 2018
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
6a3db24Comparemmermerkaya
commented
Jun 1, 2018
Yep, it is part of TS. Missing options are already fixed here, just not released yet. I've done the same change in |
hiranya911
left a comment
There was a problem hiding this comment.
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?
mmermerkaya
commented
Jun 11, 2018
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) |
hiranya911
commented
Jun 11, 2018
@mmermerkaya I want to revisit the decision to extend from |
mmermerkaya
commented
Jun 12, 2018
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 |
hiranya911
commented
Jun 12, 2018
But that means changes in @jshcrowthe what do you think? |
jshcrowthe
commented
Jun 12, 2018
I think I'm actually in favor of using the However I think it makes sense to just call this a |
mmermerkaya
commented
Jun 12, 2018
Extending from Another point is that we are not actually shipping Casting to |
hiranya911
commented
Jun 12, 2018
|
Ping. I can merge this myself but I want to make sure that it's okay with you. |
hiranya911
commented
Jul 12, 2018
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