summaryrefslogtreecommitdiff
path: root/cli/js/lib.deno.ns.d.ts
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2020-02-28 03:27:00 +1100
committerGitHub <noreply@github.com>2020-02-27 11:27:00 -0500
commit1d26da6a478d96a03b08b5bf1ff93a277b69f550 (patch)
treef780097553003735d3ba622db78b1858c1be9b59 /cli/js/lib.deno.ns.d.ts
parentdaf7617f42e2e7520344ec98db3d60016b85fd73 (diff)
feat: Support types compiler option in compiler APIs (#4155)
Handles `types` in the compiler APIs to make it easier to supply external type libraries.
Diffstat (limited to 'cli/js/lib.deno.ns.d.ts')
-rw-r--r--cli/js/lib.deno.ns.d.ts16
1 files changed, 15 insertions, 1 deletions
diff --git a/cli/js/lib.deno.ns.d.ts b/cli/js/lib.deno.ns.d.ts
index f94d28407..710d33de6 100644
--- a/cli/js/lib.deno.ns.d.ts
+++ b/cli/js/lib.deno.ns.d.ts
@@ -2156,7 +2156,21 @@ declare namespace Deno {
| "es2020"
| "esnext";
- /** List of names of type definitions to include. Defaults to `undefined`. */
+ /** List of names of type definitions to include. Defaults to `undefined`.
+ *
+ * The type definitions are resolved according to the normal Deno resolution
+ * irrespective of if sources are provided on the call. Like other Deno
+ * modules, there is no "magical" resolution. For example:
+ *
+ * Deno.compile(
+ * "./foo.js",
+ * undefined,
+ * {
+ * types: [ "./foo.d.ts", "https://deno.land/x/example/types.d.ts" ]
+ * }
+ * );
+ *
+ */
types?: string[];
}