I got the "Definitely Typed" typescript definition file for JQuery and it uses bool
instead of 'Boolean'.
This is giving me errors in my typescript project: Cannot find name 'bool'
I changed my version to use Boolean and it works, but it has me confused.
Is Definitely Typed still the place to get typescript definitions? If so, why is it not breaking for everyone else?
Is there a better place to get typescript definitions?
The correct name to use is boolean
, not Boolean
.
Definitely Typed is still the correct place to get definitions from.
Where did you get this file? The current version (https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/jquery/jquery.d.ts) does not use bool
anywhere.
This happened to me as well when I first setup Typescript for an AngularJS project.
Hope this helps.
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