Skip to content

Commit f327157

Browse files
committed
style: make type imports explicit
1 parent adde780 commit f327157

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

src/core.ts

+9-4
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,15 @@
1313
// limitations under the License.
1414

1515
import assert from 'node:assert'
16-
import { spawn, spawnSync, StdioOptions, IOType } from 'node:child_process'
16+
import {
17+
type StdioOptions,
18+
type IOType,
19+
spawn,
20+
spawnSync,
21+
} from 'node:child_process'
1722
import { type Encoding } from 'node:crypto'
18-
import { AsyncHook, AsyncLocalStorage, createHook } from 'node:async_hooks'
19-
import { Readable, Writable } from 'node:stream'
23+
import { type AsyncHook, AsyncLocalStorage, createHook } from 'node:async_hooks'
24+
import { type Readable, type Writable } from 'node:stream'
2025
import { inspect } from 'node:util'
2126
import { EOL } from 'node:os'
2227
import {
@@ -31,7 +36,7 @@ import {
3136
type TSpawnStore,
3237
} from './vendor.js'
3338
import {
34-
Duration,
39+
type Duration,
3540
errnoMessage,
3641
exitCodeInfo,
3742
formatCmd,

src/goods.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ import {
2020
chalk,
2121
minimist,
2222
nodeFetch,
23-
RequestInfo,
24-
RequestInit,
23+
type RequestInfo,
24+
type RequestInit,
2525
} from './vendor.js'
2626

2727
export { default as path } from 'node:path'

0 commit comments

Comments
 (0)