Skip to content

Commit 80677cc

Browse files
authored
refactor: expose SubprocessPromise type (#16)
1 parent 6e12bf6 commit 80677cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ interface ResolvedSubprocess extends Omit<ChildProcess, 'stdout' | 'stderr'> {
99
stderr: string;
1010
}
1111

12-
interface SubprocessPromise extends Promise<ResolvedSubprocess>, ChildProcess {}
12+
export interface SubprocessPromise extends Promise<ResolvedSubprocess>, ChildProcess {}
1313

1414
declare function extend(defaults?: ExtendOptions): (input: string, args?: string[] | ExtendOptions, options?: ExtendOptions) => SubprocessPromise;
1515

@@ -18,4 +18,4 @@ declare const $: ReturnType<typeof extend> & {
1818
json: ReturnType<typeof extend>;
1919
};
2020

21-
export = $;
21+
export default $;

0 commit comments

Comments
 (0)