Skip to content

Commit

Permalink
add typescript typings
Browse files Browse the repository at this point in the history
  • Loading branch information
nixxquality authored and cheton committed Oct 31, 2018
1 parent 4acaa6c commit 7c11b4c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export default function isElectron(): boolean;
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
"description": "Detect if running in Electron.",
"homepage": "https://github.com/cheton/is-electron",
"main": "index.js",
"types": "index.d.ts",
"files": [
"index.js"
"index.d.ts"
],
"scripts": {
"test": "tap --coverage test/*.js",
Expand Down

0 comments on commit 7c11b4c

Please sign in to comment.