ttsc
Version:
General-purpose TypeScript-Go compiler, runtime, plugin host, and LSP host.
13 lines (12 loc) • 632 B
TypeScript
import type { TtscSingleFileEmitOptions } from "../../structures/internal/TtscSingleFileEmitOptions";
/**
* Emit one source file by building its project into a temporary directory.
*
* The full project is compiled with `forceListEmittedFiles` so that the emitted
* file list is available for `resolveEmittedJavaScript`. The temp directory is
* always cleaned up in the `finally` block, even on error.
*
* @returns The transformed JavaScript source text.
* @throws When the build exits non-zero or no output is produced for the file.
*/
export declare function runSingleFileEmit(options: TtscSingleFileEmitOptions): string;