diff options
Diffstat (limited to 'deno_typescript/globals.d.ts')
-rw-r--r-- | deno_typescript/globals.d.ts | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/deno_typescript/globals.d.ts b/deno_typescript/globals.d.ts new file mode 100644 index 000000000..b087c5552 --- /dev/null +++ b/deno_typescript/globals.d.ts @@ -0,0 +1,13 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. + +// This scopes the `ts` namespace globally, which is where it exists at runtime +// when building Deno, but the `typescript/lib/typescript.d.ts` is defined as a +// module + +import * as _ts from "typescript"; + +declare global { + namespace ts { + export = _ts; + } +} |