Skip to content

Commit

Permalink
Meta tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Apr 27, 2021
1 parent b75ebaa commit f0c15fe
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/// <reference types="node"/>
import {ChildProcess} from 'child_process';

declare namespace open {
Expand Down Expand Up @@ -52,6 +51,7 @@ declare namespace open {
};
}

// eslint-disable-next-line no-redeclare
declare const open: {
/**
An object containing auto-detected binary names for common apps. Useful to work around cross-platform differences.
Expand Down
1 change: 1 addition & 0 deletions index.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import {expectType} from 'tsd';
import {ChildProcess} from 'child_process';
import open = require('.');

// eslint-disable-next-line @typescript-eslint/no-unused-vars
const options: open.Options = {};

expectType<Promise<ChildProcess>>(open('foo'));
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@
"is-wsl": "^2.2.0"
},
"devDependencies": {
"@types/node": "^14.14.27",
"@types/node": "^15.0.0",
"ava": "^3.15.0",
"tsd": "^0.14.0",
"xo": "^0.37.1"
"xo": "^0.39.1"
}
}

0 comments on commit f0c15fe

Please sign in to comment.