Skip to content

Commit 4e78d6d

Browse files
committed
Ensure all d.ts files are considered as ESM
1 parent 84e1f36 commit 4e78d6d

32 files changed

+64
-0
lines changed

types/arguments/encoding-option.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,5 @@ export type EncodingOption =
1717
| TextEncodingOption
1818
| BinaryEncodingOption
1919
| undefined;
20+
21+
export {};

types/arguments/fd-options.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ export type FromOption = 'stdout' | 'stderr' | 'all' | FileDescriptorOption;
66

77
// `to` option of `subprocess.writable|duplex|pipe()`
88
export type ToOption = 'stdin' | FileDescriptorOption;
9+
10+
export {};

types/arguments/options.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,3 +398,5 @@ export type StricterOptions<
398398
WideOptions extends CommonOptions,
399399
StrictOptions extends CommonOptions,
400400
> = WideOptions extends StrictOptions ? WideOptions : StrictOptions;
401+
402+
export {};

types/arguments/specific.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,5 @@ type FdNumberToFromOption<
5050
: 'ipc' extends GenericOptionKeys
5151
? 'ipc'
5252
: never;
53+
54+
export {};

types/convert.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,5 @@ EncodingOption extends BinaryEncodingOption
5656
? Uint8Array
5757
: string
5858
>;
59+
60+
export {};

types/ipc.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,3 +154,5 @@ type HasIpcOption<
154154
? true
155155
: false
156156
: true;
157+
158+
export {};

types/methods/command.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,3 +112,5 @@ await execa(file, commandArguments);
112112
```
113113
*/
114114
export function parseCommandString(command: string): string[];
115+
116+
export {};

types/methods/main-async.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,3 +377,5 @@ type ExecaArrayLong<OptionsType extends Options> =
377377
type ExecaArrayShort<OptionsType extends Options> =
378378
<NewOptionsType extends Options = {}>(file: string | URL, options?: NewOptionsType)
379379
=> ResultPromise<OptionsType & NewOptionsType>;
380+
381+
export {};

types/methods/main-sync.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,5 @@ type ExecaSyncArrayLong<OptionsType extends SyncOptions> =
5757
type ExecaSyncArrayShort<OptionsType extends SyncOptions> =
5858
<NewOptionsType extends SyncOptions = {}>(file: string | URL, options?: NewOptionsType)
5959
=> SyncResult<OptionsType & NewOptionsType>;
60+
61+
export {};

types/methods/node.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,5 @@ type ExecaNodeArrayLong<OptionsType extends Options> =
6060
type ExecaNodeArrayShort<OptionsType extends Options> =
6161
<NewOptionsType extends Options = {}>(scriptPath: string | URL, options?: NewOptionsType)
6262
=> ResultPromise<OptionsType & NewOptionsType>;
63+
64+
export {};

0 commit comments

Comments
 (0)