mirror of
https://github.com/openclaw/openclaw.git
synced 2026-02-19 18:39:20 -05:00
chore: Fix types in tests 33/N.
This commit is contained in:
22
scripts/run-node.d.mts
Normal file
22
scripts/run-node.d.mts
Normal file
@@ -0,0 +1,22 @@
|
||||
export const runNodeWatchedPaths: string[];
|
||||
|
||||
export function runNodeMain(params?: {
|
||||
spawn?: (
|
||||
cmd: string,
|
||||
args: string[],
|
||||
options: unknown,
|
||||
) => {
|
||||
on: (
|
||||
event: "exit",
|
||||
cb: (code: number | null, signal: string | null) => void,
|
||||
) => void | undefined;
|
||||
};
|
||||
spawnSync?: unknown;
|
||||
fs?: unknown;
|
||||
stderr?: { write: (value: string) => void };
|
||||
execPath?: string;
|
||||
cwd?: string;
|
||||
args?: string[];
|
||||
env?: NodeJS.ProcessEnv;
|
||||
platform?: NodeJS.Platform;
|
||||
}): Promise<number>;
|
||||
14
scripts/watch-node.d.mts
Normal file
14
scripts/watch-node.d.mts
Normal file
@@ -0,0 +1,14 @@
|
||||
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>;
|
||||
Reference in New Issue
Block a user