Skip to content
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.

Commit

Permalink
Revert "Add type overload for Push.Permission.request()"
Browse files Browse the repository at this point in the history
This reverts commit aa0c042.
  • Loading branch information
Jean-Christophe Maigrot committed Feb 19, 2020
1 parent aa0c042 commit 72e7115
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 81 deletions.
39 changes: 1 addition & 38 deletions bin/push.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bin/push.js.map

Large diffs are not rendered by default.

39 changes: 1 addition & 38 deletions bin/push.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bin/push.min.js.map

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
declare module 'push.js' {

const defaultPush: Push;
export default defaultPush;

class Push {
Permission: PushPermission;

create(title: string, params?: PushNotificationParams): Promise<PushNotification>;
create(title: string, params?: PushNotificationParams): Promise<PushNotification>

close(tag: string): void;

Expand Down Expand Up @@ -37,8 +38,7 @@ declare module 'push.js' {
GRANTED: string;
DENIED: string;

request(): Promise<void>;
request(onGranted: () => void, onDenied?: () => void): void;
request(onGranted?: Function, onDenied?: Function): void;

has(): boolean;

Expand Down

0 comments on commit 72e7115

Please sign in to comment.