diff --git a/index.d.ts b/index.d.ts index 1fe2e610..446dfe66 100644 --- a/index.d.ts +++ b/index.d.ts @@ -6,7 +6,7 @@ declare module 'push.js' { class Push { Permission: PushPermission; - create(title: string, params?: PushNotificationParams): Promise + create(title: string, params?: PushNotificationParams): Promise; close(tag: string): void; @@ -38,7 +38,8 @@ declare module 'push.js' { GRANTED: string; DENIED: string; - request(onGranted?: Function, onDenied?: Function): void; + request(): Promise; + request(onGranted: () => void, onDenied?: () => void): void; has(): boolean;