build: refactor ambient node & jasmine types so they are only included where needed (#25528)

PR Close #25528
This commit is contained in:
Greg Magolan
2018-08-14 16:18:26 -07:00
committed by Jason Aden
parent 292b435495
commit 7eed4ee837
20 changed files with 67 additions and 12 deletions

9
packages/types.d.ts vendored
View File

@ -9,13 +9,18 @@
// This file contains all ambient imports needed to compile the packages/ source code
/// <reference types="hammerjs" />
/// <reference types="jasmine" />
/// <reference types="node" />
/// <reference types="zone.js" />
/// <reference path="./es6-subset.d.ts" />
/// <reference path="./goog.d.ts" />
/// <reference path="./system.d.ts" />
// Do not included "node" and "jasmine" types here as we don't
// want these ambient types to be included everywhere.
// Tests will bring in ambient node & jasmine types with
// /packages/tsconfig-test.json when `testonly = True` is set
// and packages such as platform-server that need these types should
// use `/// <reference types="x">` in their main entry points
declare let isNode: boolean;
declare let isBrowser: boolean;