Files
oh-my-opencode/dist/tools/ast-grep/process-output-timeout.d.ts
T
2026-03-14 04:56:50 +00:00

13 lines
336 B
TypeScript

type SpawnedProcess = {
stdout: ReadableStream | null;
stderr: ReadableStream | null;
exited: Promise<number>;
kill: () => void;
};
export declare function collectProcessOutputWithTimeout(process: SpawnedProcess, timeoutMs: number): Promise<{
stdout: string;
stderr: string;
exitCode: number;
}>;
export {};