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

PR Close #25491
This commit is contained in:
Greg Magolan
2018-08-14 16:18:26 -07:00
committed by Jason Aden
parent 9ee6702fa9
commit 9605456b66
21 changed files with 69 additions and 12 deletions

View File

@ -10,6 +10,11 @@ import {AUTO_STYLE, AnimationEvent, AnimationPlayer, NoopAnimationPlayer, ɵAnim
import {AnimationStyleNormalizer} from '../../src/dsl/style_normalization/animation_style_normalizer';
import {AnimationDriver} from '../../src/render/animation_driver';
// We don't include ambient node types here since @angular/animations/browser
// is meant to target the browser so technically it should not depend on node
// types. `process` is just declared locally here as a result.
declare const process: any;
export function isBrowser() {
return (typeof window !== 'undefined' && typeof window.document !== 'undefined');
}