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:
Peter Steinberger 2026-09-22 03:29:40 -07:00
parent c76ef71e21
commit 80b9608a25
No known key found for this signature in database

View 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>;