Skip to content

[Web API type definition issue] 'actions' is missing in interface NotificationOptions #2007

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

Closed
2 of 3 tasks
kendlbat opened this issue Apr 27, 2025 · 2 comments
Closed
2 of 3 tasks

Comments

@kendlbat
Copy link

kendlbat commented Apr 27, 2025

Summary

Missing attribute 'actions' in interface 'NotificationOptions' for ServiceWorker DOM API

Expected vs. Actual Behavior

Expected: 'actions' is recognised as a proper option for showNotification
Actual: 'actions' is marked as an error

Playground Link

https://www.typescriptlang.org/play/?target=99&jsx=0#code/PQgEB4CcFMDNpgOwMbVAGwJYCMC8AiAd2m0IHtIBrBfUYAPgChoAPABwoBdQATOAQwCu6bomHoA3Iz7J0-GBmjcAztHSwAXKADKCAG6ZUAdQrVIAcXRls-dNuRk20KYzAAlaKkx60bQcoALUEQyTkxYQ34wskRlRlV1ADp+Hh4AUR9ETgAZTGVOaEQEAAp8P0D8ABpQWEEUaMRQYugASlAAb0ZQbtBwpoBCYoA5UPDIhtAAMknQEbCI5CjMGMSnSABbPOVlxtw90HwAc0h+LOgefBa2zp7b0AdYsnRoRKtD0rmxxYm1zeVtmLBUKgY6nAoXFpSO49GCcQSQRBQnoAX0YXR6fWaiR4UX413R0Ie+VA62g-34hzQuFALxxnH4iQAVsoYsVIQS7kSni83qUAAr+IKk8mU0AwLw+HhaKoksnKCmtJHQl6EfiYTgAVSymHQxQ50O6CVgiRghzynBODUSgTIhE+CyWrOF8spiTCnGe1RuBp92DIPAAnlpnQrEn7A6AANQHGPRgBS2gA8kNrRbMIgzbAA8UQ666XjKvqfRiHtLgLB+AYHta9IcqkXi7xccG5aH84XG9D+MgGsotABtBud7re4eN7sNFsi2m4jtjxvu57SxNORD4IfD1Hz7oAXQ3KJaQ-Zt1RyMhQA

Browser Support

  • This API is supported in at least two major browser engines (not two Chromium-based browsers).

Have Tried The Latest Releases

  • This issue applies to the latest release of TypeScript.
  • This issue applies to the latest release of @types/web.

Additional Context

https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/showNotification#parameters

@kendlbat
Copy link
Author

Sorry - i misread the compatibility table. This is only supported in chromium-based browsers. Closing - have a nice day :)

@Bashamega
Copy link
Contributor

Sorry - i misread the compatibility table. This is only supported in chromium-based browsers. Closing - have a nice day :)

No problem

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

No branches or pull requests

2 participants