openclaw/scripts/watch-node.d.mts

27 lines
716 B
TypeScript
Raw Normal View History

2026-02-17 15:45:36 +09:00
export function runWatchMain(params?: {
spawn?: (
cmd: string,
args: string[],
options: unknown,
) => {
kill?: (signal?: NodeJS.Signals | number) => void;
2026-02-17 15:45:36 +09:00
on: (event: "exit", cb: (code: number | null, signal: string | null) => void) => void;
};
createWatcher?: (
paths: string[],
options: {
ignoreInitial: boolean;
ignored: (watchPath: string) => boolean;
},
) => {
on: (event: "add" | "change" | "unlink" | "error", cb: (arg?: unknown) => void) => void;
close?: () => Promise<void> | void;
};
watchPaths?: string[];
2026-02-17 15:45:36 +09:00
process?: NodeJS.Process;
cwd?: string;
args?: string[];
env?: NodeJS.ProcessEnv;
now?: () => number;
}): Promise<number>;