From cbaa054154e85dc72ac9726fb6ea9dab6ede8021 Mon Sep 17 00:00:00 2001 From: Yoshiya Hinosawa Date: Tue, 6 Apr 2021 22:33:02 +0900 Subject: docs: export EmitOptions and EmitResult (#10037) --- cli/dts/lib.deno.unstable.d.ts | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'cli/dts') 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>; } - 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; } - 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 -- cgit v1.2.3