diff options
| author | Kitson Kelly <me@kitsonkelly.com> | 2020-02-19 16:34:11 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-19 00:34:11 -0500 |
| commit | 046bbb26913f9da58b0d23ae331e9dab9dc19e59 (patch) | |
| tree | 74dd5945ed1ff10ce84fea05c73d9c13b31ad376 /cli/js/ts_global.d.ts | |
| parent | 3d5bed35e032ee20e4fe34cad925202c6f0c0d3e (diff) | |
Support loading additional TS lib files (#3863)
Fixes #3726
This PR provides support for referencing other lib files (like lib.dom.d.ts that are not
used by default in Deno.
Diffstat (limited to 'cli/js/ts_global.d.ts')
| -rw-r--r-- | cli/js/ts_global.d.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cli/js/ts_global.d.ts b/cli/js/ts_global.d.ts index f887d578e..7b9d84c7a 100644 --- a/cli/js/ts_global.d.ts +++ b/cli/js/ts_global.d.ts @@ -16,4 +16,11 @@ declare global { namespace ts { export = ts_; } + + namespace ts { + // this are marked @internal in TypeScript, but we need to access them, + // there is a risk these could change in future versions of TypeScript + export const libs: string[]; + export const libMap: Map<string, string>; + } } |
