TypeScript-DOM-lib-generator
TypeScript-DOM-lib-generator copied to clipboard
NotificationOptions is missing actions option
Hey,
I noticed that the NotificationOptions definition doesn't include the actions option. This is the current definition: dom.generated.d.ts and serviceworker.generated.d.ts
Here is the relevant mdn link.
In addition, timestamp and renotify are also missing.
This might be an regression of #438, but I am not sure.
https://github.com/microsoft/TypeScript-DOM-lib-generator?tab=readme-ov-file#when-the-type-is-missing
If there is, see the browser compatibility section and check whether it's supported by two or more browser engines. (Note that Chromium-based browsers use the same browser engine and thus support from them counts as a single support.)
So your suggestion is missing Firefox or Safari support.
As mentioned by @TheNoim, timestamp has been removed without any documentation on MDN suggesting lack of support.
So your suggestion is missing Firefox or Safari support.
requireInteraction is included and has the same support as actions
Is there any update on this?
Looking for an update on this as well.
Is this issue being worked? We use actions in our code base and they work perfectly fine. It's annoying that typescript thinks there is an error. Our payload looks similar to this:
{
body: '',
actions: [], //Typescript error
data: {}
}
also vibrate
Still not enough support