Skip to content

Commit

Permalink
fix: include event-target-shim types
Browse files Browse the repository at this point in the history
otherwise, users of the package get errors about the EventTarget type
  • Loading branch information
urish committed Nov 18, 2017
1 parent f7b0c24 commit 207d66b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"prepublish": "npm run build"
},
"files": [
"dist"
"dist",
"src/event-target.d.ts"
],
"dependencies": {
"@types/web-bluetooth": "^0.0.3",
Expand Down
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
// Copyright (C) 2017, Uri Shaked
// Published under the terms of the MIT license

/// <reference path="./event-target.d.ts" />

import { EventTarget } from "event-target-shim";

function leftPad(s: string, count: number, pad: string) {
Expand Down
5 changes: 3 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@
"rootDir": "src",
"outDir": "dist",
"lib": ["es5", "dom", "es2015.core", "es2015.promise"],
"types": ["web-bluetooth"]
"types": ["web-bluetooth"],
"strict": true
},
"include": [
"src/**/*.ts"
"src/index.ts"
]
}
1 change: 1 addition & 0 deletions tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
],
"jsRules": {},
"rules": {
"no-reference": false,
"max-classes-per-file": false
},
"rulesDirectory": []
Expand Down

0 comments on commit 207d66b

Please sign in to comment.