chore: Fix types in tests 33/N.

This commit is contained in:
cpojer
2026-02-17 15:45:36 +09:00
parent f44b58fd58
commit 49bd9f75f4
21 changed files with 148 additions and 42 deletions

22
scripts/run-node.d.mts Normal file
View 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
View 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>;