Skip to content

Commit

Permalink
Fix WebPushNotification Shape
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromegamez committed May 20, 2024
1 parent 022c3e8 commit 18cd6f8
Showing 1 changed file with 18 additions and 20 deletions.
38 changes: 18 additions & 20 deletions src/Firebase/Messaging/WebPushConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,26 +35,24 @@
* @see https://developer.mozilla.org/en-US/docs/Web/API/Notification/Notification#syntax WebPush Notification Syntax
*
* @phpstan-type WebPushNotificationShape array{
* title: non-empty-string,
* options?: array{
* dir?: 'ltr'|'rtl'|'auto',
* lang?: string,
* badge?: non-empty-string,
* body?: non-empty-string,
* tag?: non-empty-string,
* icon?: non-empty-string,
* image?: non-empty-string,
* data?: mixed,
* vibrate?: list<positive-int>,
* renotify?: bool,
* requireInteraction?: bool,
* actions?: list<array{
* action: non-empty-string,
* title: non-empty-string,
* icon: non-empty-string
* }>,
* silent?: bool
* }
* title?: non-empty-string,
* dir?: 'ltr'|'rtl'|'auto',
* lang?: string,
* badge?: non-empty-string,
* body?: non-empty-string,
* tag?: non-empty-string,
* icon?: non-empty-string,
* image?: non-empty-string,
* data?: mixed,
* vibrate?: list<positive-int>,
* renotify?: bool,
* requireInteraction?: bool,
* actions?: list<array{
* action: non-empty-string,
* title: non-empty-string,
* icon: non-empty-string
* }>,
* silent?: bool
* }
*
* @see https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages#webpushconfig WebPush Config Syntax
Expand Down

0 comments on commit 18cd6f8

Please sign in to comment.