Skip to content

Commit

Permalink
Remove @types/node reference
Browse files Browse the repository at this point in the history
Fixes #2397.

* Remove @types/node reference from our TypeScript definition

* Ensure our TypeScript tests don't use any installed types

* Adjust our TypeScript test target to ES2018
  • Loading branch information
novemberborn committed Feb 16, 2020
1 parent 3f9c616 commit 7a1dacf
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 10 deletions.
2 changes: 0 additions & 2 deletions index.d.ts
@@ -1,5 +1,3 @@
/// <reference types="node"/>

export interface Subscribable {
subscribe(observer: {
error(err: any): void,
Expand Down
6 changes: 0 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Expand Up @@ -112,7 +112,6 @@
},
"devDependencies": {
"@ava/babel": "^1.0.1",
"@types/node": "^10.17.13",
"ansi-escapes": "^4.3.0",
"delay": "^4.3.0",
"esm": "^3.2.25",
Expand Down
3 changes: 2 additions & 1 deletion test/ts-types/tsconfig.json
@@ -1,7 +1,8 @@
{
"compilerOptions": {
"module": "commonjs",
"target": "es2017",
"target": "es2018",
"types": [],
"strict": true
}
}

0 comments on commit 7a1dacf

Please sign in to comment.