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

Commit

Permalink
Update typings for default export and config (#189)
Browse files Browse the repository at this point in the history
1) Typescript restricts the use of expressions directly in an export statement. Updated to a proper way of making a DTS.

2) Added return type declaration to `config`
  • Loading branch information
natsukagami authored and theLufenk committed Oct 20, 2018
1 parent 9ad9572 commit 8ebfdad
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
declare module 'push.js' {

export default new Push();
const defaultPush: Push;
export default defaultPush;

class Push {
Permission: PushPermission;
Expand All @@ -11,7 +12,7 @@ declare module 'push.js' {

clear(): void;

config(params: PushParams)
config(params: PushParams): void;
}

export interface PushNotificationParams {
Expand Down

0 comments on commit 8ebfdad

Please sign in to comment.