diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2019-09-10 14:54:32 +1000 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-09-10 00:54:32 -0400 |
commit | 377966764636350c524b526da50c055243ab3005 (patch) | |
tree | b77998fe56e5f41f210d29c99ce1b177163e8f1f /deno_typescript/globals.d.ts | |
parent | 46cbc6e0e96750cd2e3ba7e0d80bb9c48b66caf2 (diff) |
Add JSDoc to deno_typescript (#2890)
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; + } +} |