diff --git a/index.d.ts b/index.d.ts index db79a44..d46afbe 100644 --- a/index.d.ts +++ b/index.d.ts @@ -685,6 +685,33 @@ declare global { stringify(json: any): string } + interface ExecPackage { + command(cmd: string, options?: { + args?: string[] + stdin?: string + dir?: string + env?: string[] + timeout?: number + returnObject?: boolean + combineOutput?: boolean + }): string + + command(cmd: string, options: T): + T['returnObject'] extends true + ? T['combineOutput'] extends true + ? { output: string; exitCode: number } + : { stdout: string; stderr: string; exitCode: number } + : string + } + export interface HookContext extends GetHookData, GetHookGetOnlyData,