I am very new in typescript..
when Iam trying to invoke this javascript like this in typescript
window.location('http://localhost:1773/Repository/NetworkPlan/ExportPng');
I got compiler error message like this
cannot invoke an expression whose type lack of signature
Can anyone help me why I got this error?
Thanks
TypeScript is saving you from a slight coding error:
window.location.href = 'http://localhost:1773/Repository/NetworkPlan/ExportPng';
It isn't a method call, it is a property you set.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With