mirror of
https://github.com/openclaw/openclaw.git
synced 2026-10-03 01:29:56 +00:00
fix(tooling): declare tsx CLI shim exports
Add the adjacent typed module contract for the five runtime exports and child-process options. This fixes TS7016 when the UI typecheck follows the shared Vitest configuration into resolveTsxImport without changing runtime behavior. Verified the exact pnpm tsgo:ui failure before the declaration and success afterward. Formatting, diff checks, and independent review through P2 pass.
This commit is contained in:
parent
c76ef71e21
commit
80b9608a25
1 changed files with 18 additions and 0 deletions
18
scripts/lib/tsx-cli-shim.d.mts
Normal file
18
scripts/lib/tsx-cli-shim.d.mts
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
import type { StdioOptions } from "node:child_process";
|
||||
|
||||
export type CliShimOptions = {
|
||||
implementation: string | URL;
|
||||
detached?: boolean;
|
||||
executable?: string;
|
||||
execArgv?: readonly string[];
|
||||
failureTool?: string;
|
||||
forceKillDelayMs?: number;
|
||||
stdio?: StdioOptions;
|
||||
terminationOwner?: "implementation";
|
||||
};
|
||||
|
||||
export function resolveForwardedNodeCompilerArgs(execArgv?: readonly string[]): string[];
|
||||
export function resolveTsxImport(checkoutRoot: string): string;
|
||||
export function registerToolingTsx(): Promise<void>;
|
||||
export function runNodeCliShim(moduleUrl: string | URL, options: CliShimOptions): Promise<void>;
|
||||
export function runTsxCliShim(moduleUrl: string | URL, options: CliShimOptions): Promise<void>;
|
||||
Loading…
Add table
Add a link
Reference in a new issue