deno_typescript 0.18.0-preview4

To compile TypeScript to a snapshot during build.rs
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
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/lib/typescript.d.ts";

declare global {
  namespace ts {
    export = _ts;
  }
}