summaryrefslogtreecommitdiff
path: root/cli/dts/lib.deno.unstable.d.ts
diff options
context:
space:
mode:
authorYoshiya Hinosawa <stibium121@gmail.com>2021-04-06 22:33:02 +0900
committerGitHub <noreply@github.com>2021-04-06 22:33:02 +0900
commitcbaa054154e85dc72ac9726fb6ea9dab6ede8021 (patch)
treeb7b5ed7b325845751e5765040ac8450d1fa43a89 /cli/dts/lib.deno.unstable.d.ts
parent2c86ca1d643add802f0140aa5598d1bc8b05082e (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.ts14
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