build: refactor ambient node & jasmine types so they are only included where needed (#25528)
PR Close #25528
This commit is contained in:
9
packages/types.d.ts
vendored
9
packages/types.d.ts
vendored
@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user