diff options
author | Yoshiya Hinosawa <stibium121@gmail.com> | 2021-04-06 22:33:02 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-06 22:33:02 +0900 |
commit | cbaa054154e85dc72ac9726fb6ea9dab6ede8021 (patch) | |
tree | b7b5ed7b325845751e5765040ac8450d1fa43a89 /cli/dts/lib.deno.unstable.d.ts | |
parent | 2c86ca1d643add802f0140aa5598d1bc8b05082e (diff) |
docs: export EmitOptions and EmitResult (#10037)
Diffstat (limited to 'cli/dts/lib.deno.unstable.d.ts')
-rw-r--r-- | cli/dts/lib.deno.unstable.d.ts | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/cli/dts/lib.deno.unstable.d.ts b/cli/dts/lib.deno.unstable.d.ts index 3fb81c603..0833c3301 100644 --- a/cli/dts/lib.deno.unstable.d.ts +++ b/cli/dts/lib.deno.unstable.d.ts @@ -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 |