UNSTABLE: new API, yet to be vetted.

The result of Deno.emit() API.

interface EmitResult {
diagnostics: Diagnostic[];
files: Record<string, string>;
ignoredOptions?: string[];
stats: Array<[string, number]>;


diagnostics: Diagnostic[]

Diagnostic messages returned from the type checker (tsc).

Can be used with Deno.formatDiagnostics to display a user friendly string.

files: Record<string, string>

Any emitted files. If bundled, then the JavaScript will have the key of deno:///bundle.js with an optional map (based on compilerOptions) in deno:///

ignoredOptions?: string[]

An optional array of any compiler options that were ignored by Deno.

stats: Array<[string, number]>

An array of internal statistics related to the emit, for diagnostic purposes.