Declare an any global
suggest changeIt is sometimes easiest to just declare a global of type any
, especially in simple projects.
If jQuery didn’t have type declarations (it does), you could put
declare var $: any;
Now any use of $ will be typed any
.
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents