UNPKG

ttsc

Version:

General-purpose TypeScript-Go compiler, runtime, plugin host, and LSP host.

18 lines (17 loc) 945 B
import type { ITtscProjectInputSnapshot } from "./ITtscProjectInputSnapshot"; import type { TtscCommonOptions } from "./TtscCommonOptions"; /** Internal options for emitting one source file through the file-argument path. */ export interface TtscSingleFileEmitOptions extends TtscCommonOptions { /** Source file to emit. Absolute paths and `cwd`-relative paths work. */ file: string; /** Project config owning `file`; discovered from `file` when omitted. */ tsconfig?: string; /** Optional output file path. */ out?: string; /** Suppress summary banners from ttsc/native sidecars. Defaults to `true`. */ quiet?: boolean; /** Receive native-plugin source roots when a watch owns this invocation. */ onWatchInputs?: (inputs: readonly string[]) => void; /** Receive project-rule filesystem inputs when a watch owns this invocation. */ onProjectInputs?: (inputs: ITtscProjectInputSnapshot) => void; }