In the below typescript syntax,
var strToNum: number = window.parseInt("5");
gives error:
tstut.ts(15,31): error TS2551: Property 'parseInt' does not exist on type 'Window'. Did you mean 'parent'?
DOM has,
> window.parseInt
ƒ parseInt() { [native code] }
Why tsc
gives transpilation error?