Skip to content

Commit c3856af

Browse files
authored
Merge pull request #367 from arjunyel/getSubscription
PushManager getSubscription possibly null
2 parents 5fa4988 + b787b78 commit c3856af

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

baselines/dom.generated.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9114,7 +9114,7 @@ declare var ProgressEvent: {
91149114
};
91159115

91169116
interface PushManager {
9117-
getSubscription(): Promise<PushSubscription>;
9117+
getSubscription(): Promise<PushSubscription | null>;
91189118
permissionState(options?: PushSubscriptionOptionsInit): Promise<PushPermissionState>;
91199119
subscribe(options?: PushSubscriptionOptionsInit): Promise<PushSubscription>;
91209120
}

baselines/webworker.generated.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -884,7 +884,7 @@ declare var ProgressEvent: {
884884
};
885885

886886
interface PushManager {
887-
getSubscription(): Promise<PushSubscription>;
887+
getSubscription(): Promise<PushSubscription | null>;
888888
permissionState(options?: PushSubscriptionOptionsInit): Promise<PushPermissionState>;
889889
subscribe(options?: PushSubscriptionOptionsInit): Promise<PushSubscription>;
890890
}

inputfiles/overridingTypes.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1837,5 +1837,13 @@
18371837
"signatures": [
18381838
"(keyId: any, status: MediaKeyStatus): void"
18391839
]
1840+
},
1841+
{
1842+
"kind": "method",
1843+
"name": "getSubscription",
1844+
"interface": "PushManager",
1845+
"signatures":[
1846+
"getSubscription(): Promise<PushSubscription | null>"
1847+
]
18401848
}
18411849
]

0 commit comments

Comments
 (0)