build: refactor ambient node & jasmine types so they are only included where needed (#25491)
PR Close #25491
This commit is contained in:
@ -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');
|
||||
}
|
||||
|
Reference in New Issue
Block a user