Skip to content

Commit 0fd91a4

Browse files
walkthunder乔柯
andauthored
fix(interface): Add the missing extraOpts paramter in type declaration (#11)
Co-authored-by: 乔柯 <[email protected]>
1 parent 6fe00d6 commit 0fd91a4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

index.d.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ declare namespace RunScript {
77
stderr?: Writable;
88
}
99

10+
export interface ExtraOptions {
11+
timeout?: number;
12+
}
13+
1014
export interface Stdio {
1115
stdout: Buffer | null;
1216
stderr: Buffer | null;
@@ -17,6 +21,6 @@ declare namespace RunScript {
1721
}
1822
}
1923

20-
declare function RunScript(cmd: string, opts?: RunScript.Options): Promise<RunScript.Stdio>;
24+
declare function RunScript(cmd: string, opts?: RunScript.Options, extraOpts?: RunScript.ExtraOptions): Promise<RunScript.Stdio>;
2125

2226
export = RunScript;

0 commit comments

Comments
 (0)