mirror of
https://github.com/denoland/deno.git
synced 2024-10-29 08:58:01 -04: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>>;
|
||||
}
|
||||
|
||||
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
|
||||
* JavaScript bundle that is a single ES module (`"esm"`) or a single file
|
||||
* self contained script we executes in an immediately invoked function
|
||||
|
@ -467,7 +472,12 @@ declare namespace Deno {
|
|||
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`). */
|
||||
diagnostics: Diagnostic[];
|
||||
/** Any emitted files. If bundled, then the JavaScript will have the
|
||||
|
|
Loading…
Reference in a new issue