Component evidence

structures/ITtscCompilerTransformation.ts

ttsc · packages/ttsc/src/structures/ITtscCompilerTransformation.ts · typescript · MIT
files

Defines a discriminated union type for TypeScript compiler transformation results.

Source preview first 800 characters · full source over MCP
// Source: https://github.com/samchon/ttsc | License: MIT | Copyright 2026 Jeongho Nam
// Provided via justclaw.it.com; keep this notice with the code.
import type { ITtscCompilerDiagnostic } from "./ITtscCompilerDiagnostic";

/**
 * Result of a TypeScript source-to-source transformation operation.
 *
 * Unlike {@link ITtscCompilerResult}, this contract is not an emit contract: the
 * `typescript` map carries producer-reported source text rather than compiler
 * emit artifacts. The builtin producer returns loaded non-declaration source
 * files' text, including JavaScript inputs when admitted by the program; source
 * maps are separate advisory payloads, not entries in that text map.
 *
 * @evidence contracts/common.md#principled-implementation The discriminated union separates completed s

... (truncated -- full source via MCP)