Skip to content

Commit

Permalink
Explicitly reference the Node.js type definition
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus authored and novemberborn committed Jun 10, 2019
1 parent b3c9ea7 commit bb44da7
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
2 changes: 2 additions & 0 deletions index.d.ts
@@ -1,3 +1,5 @@
/// <reference types="node"/>

export interface ObservableLike {
subscribe(observer: (value: unknown) => void): void;
[Symbol.observable](): ObservableLike;
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Expand Up @@ -135,6 +135,7 @@
"write-file-atomic": "^3.0.0"
},
"devDependencies": {
"@types/node": "^8.10.49",
"cli-table3": "^0.5.1",
"codecov": "^3.5.0",
"delay": "^4.2.0",
Expand Down
10 changes: 5 additions & 5 deletions test/ts-types/tsconfig.json
@@ -1,7 +1,7 @@
{
"compilerOptions": {
"module": "commonjs",
"target": "ES2017",
"strict": true
}
"compilerOptions": {
"module": "commonjs",
"target": "es2017",
"strict": true
}
}

0 comments on commit bb44da7

Please sign in to comment.