Refactor subscription format
Place the actual push subscription data into a push property on the subscription so that other properties can be added to it.
This commit is contained in:
parent
b4934005ae
commit
abdcc83eb9
5 changed files with 29 additions and 11 deletions
4
shared/types/account.d.ts
vendored
Normal file
4
shared/types/account.d.ts
vendored
Normal file
|
@ -0,0 +1,4 @@
|
|||
export interface Subscription {
|
||||
type: "push",
|
||||
push: PushSubscriptionJSON,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue