mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-16 12:30:49 +00:00
27 lines
716 B
TypeScript
27 lines
716 B
TypeScript
export function runWatchMain(params?: {
|
|
spawn?: (
|
|
cmd: string,
|
|
args: string[],
|
|
options: unknown,
|
|
) => {
|
|
kill?: (signal?: NodeJS.Signals | number) => void;
|
|
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[];
|
|
process?: NodeJS.Process;
|
|
cwd?: string;
|
|
args?: string[];
|
|
env?: NodeJS.ProcessEnv;
|
|
now?: () => number;
|
|
}): Promise<number>;
|