15 lines
416 B
TypeScript
15 lines
416 B
TypeScript
declare module "../../scripts/watch-node.mjs" {
|
|
export function runWatchMain(params?: {
|
|
spawn?: (
|
|
cmd: string,
|
|
args: string[],
|
|
options: unknown,
|
|
) => { on: (event: "exit", cb: (code: number | null, signal: string | null) => void) => void };
|
|
process?: NodeJS.Process;
|
|
cwd?: string;
|
|
args?: string[];
|
|
env?: NodeJS.ProcessEnv;
|
|
now?: () => number;
|
|
}): Promise<number>;
|
|
}
|