Skip to content

NotificationOptions is missing actions option #1725

Open

Description

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.

Activity

  1. HolgerJeromin commented on May 13, 2024

    @HolgerJeromin
    Contributor

    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.

  2. benelliott commented on May 30, 2024

    @benelliott

    As mentioned by Nils Bergmann (@TheNoim), timestamp has been removed without any documentation on MDN suggesting lack of support.

  3. markusahrweileramcon commented on Jun 28, 2024

    @markusahrweileramcon

    So your suggestion is missing Firefox or Safari support.

    requireInteraction is included and has the same support as actions

  4. IgnisDa commented on Sep 28, 2024

    @IgnisDa

    Is there any update on this?

  5. tappin-kr commented on Oct 3, 2024

    @tappin-kr

    Looking for an update on this as well.

  6. snotmare commented on Jan 22, 2025

    @snotmare

    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: {}
    }
    
  7. zdila commented on Apr 30, 2025

    @zdila

    also vibrate

  8. Bashamega commented on May 13, 2025

    @Bashamega
    Contributor

    Still not enough support

  9. WebGL3D commented on Sep 10, 2026

    @WebGL3D

    Firefox added support for options.actions in version 152, what is the route for supporting this property?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions