mirror of
https://github.com/denoland/deno.git
synced 2025-01-21 21:50:00 -05:00
docs: export EmitOptions and EmitResult (#10037)
This commit is contained in:
parent
2c86ca1d64
commit
cbaa054154
1 changed files with 12 additions and 2 deletions
14
cli/dts/lib.deno.unstable.d.ts
vendored
14
cli/dts/lib.deno.unstable.d.ts
vendored
|
@ -434,7 +434,12 @@ declare namespace Deno {
|
||||||
scopes?: Record<string, Record<string, string>>;
|
scopes?: Record<string, Record<string, string>>;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface EmitOptions {
|
/**
|
||||||
|
* **UNSTABLE**: new API, yet to be vetted.
|
||||||
|
*
|
||||||
|
* The options for `Deno.emit()` API.
|
||||||
|
*/
|
||||||
|
export interface EmitOptions {
|
||||||
/** Indicate that the source code should be emitted to a single file
|
/** Indicate that the source code should be emitted to a single file
|
||||||
* JavaScript bundle that is a single ES module (`"esm"`) or a single file
|
* JavaScript bundle that is a single ES module (`"esm"`) or a single file
|
||||||
* self contained script we executes in an immediately invoked function
|
* self contained script we executes in an immediately invoked function
|
||||||
|
@ -467,7 +472,12 @@ declare namespace Deno {
|
||||||
sources?: Record<string, string>;
|
sources?: Record<string, string>;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface EmitResult {
|
/**
|
||||||
|
* **UNSTABLE**: new API, yet to be vetted.
|
||||||
|
*
|
||||||
|
* The result of `Deno.emit()` API.
|
||||||
|
*/
|
||||||
|
export interface EmitResult {
|
||||||
/** Diagnostic messages returned from the type checker (`tsc`). */
|
/** Diagnostic messages returned from the type checker (`tsc`). */
|
||||||
diagnostics: Diagnostic[];
|
diagnostics: Diagnostic[];
|
||||||
/** Any emitted files. If bundled, then the JavaScript will have the
|
/** Any emitted files. If bundled, then the JavaScript will have the
|
||||||
|
|
Loading…
Add table
Reference in a new issue