TypeScript Version:
1.8.10
Code
Expected behavior:
compiled
Actual behavior:
error TS2339: Property 'Math' does not exist on type 'Window'
PS: Math.round(1.35) works as expected, but I want to access it from window in order to be able to mock this method in Angular unit tests by mocking $window service.
TypeScript Version:
1.8.10
Code
Expected behavior:
compiled
Actual behavior:
error TS2339: Property 'Math' does not exist on type 'Window'
PS:
Math.round(1.35)works as expected, but I want to access it fromwindowin order to be able to mock this method in Angular unit tests by mocking$windowservice.