Skip to content

Commit

Permalink
Merge pull request #17 from PomepuyN/master
Browse files Browse the repository at this point in the history
Add type definitions
  • Loading branch information
MatthieuLemoine authored Apr 18, 2018
2 parents 63dbaf2 + 016b133 commit b2a1e39
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"repository": "https://github.com/MatthieuLemoine/electron-push-receiver",
"author": "MatthieuLemoine",
"license": "MIT",
"types": "src/electron-push-receiver.d.ts",
"dependencies": {
"electron-config": "^1.0.0",
"push-receiver": "^2.0.0"
Expand Down
11 changes: 11 additions & 0 deletions src/electron-push-receiver.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
interface ElectronPushReceiver {
START_NOTIFICATION_SERVICE: string;
NOTIFICATION_SERVICE_STARTED: string;
NOTIFICATION_SERVICE_ERROR: string;
NOTIFICATION_RECEIVED: string;
TOKEN_UPDATED: string;
setup: (webContents: Electron.WebContents) => void;
}

declare const electronPushReceiver: ElectronPushReceiver;
export = electronPushReceiver;

0 comments on commit b2a1e39

Please sign in to comment.