Skip to content

Commit

Permalink
Meta tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Jul 10, 2023
1 parent 58a90bf commit 5a4cb2b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
4 changes: 2 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {Buffer} from 'node:buffer';
import {MergeExclusive, TypedArray} from 'type-fest';
import {type Buffer} from 'node:buffer';
import {type MergeExclusive, type TypedArray} from 'type-fest';

export type FileOptions = MergeExclusive<
{
Expand Down
4 changes: 2 additions & 2 deletions index.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ import {
temporaryWriteTask,
temporaryWriteSync,
rootTemporaryDirectory,
FileOptions,
type FileOptions,
} from './index.js';

const options: FileOptions = {}; // eslint-disable-line @typescript-eslint/no-unused-vars
const options: FileOptions = {};
expectType<string>(temporaryDirectory());
expectType<string>(temporaryDirectory({prefix: 'name_'}));
expectType<string>(temporaryFile());
Expand Down
15 changes: 10 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,21 @@
],
"dependencies": {
"is-stream": "^3.0.0",
"temp-dir": "^2.0.0",
"temp-dir": "^3.0.0",
"type-fest": "^2.12.2",
"unique-string": "^3.0.0"
},
"devDependencies": {
"@types/node": "^17.0.24",
"ava": "^4.2.0",
"@types/node": "^20.4.1",
"ava": "^5.3.1",
"path-exists": "^5.0.0",
"touch": "^3.1.0",
"tsd": "^0.20.0",
"xo": "^0.48.0"
"tsd": "^0.28.1",
"xo": "^0.54.2"
},
"xo": {
"rules": {
"@typescript-eslint/no-redundant-type-constituents": "off"
}
}
}

0 comments on commit 5a4cb2b

Please sign in to comment.