I'm learning to use typescript and I do not understand why it does not work
initHideCookies = (function (selector:string) {
//Hide Cookies
$(selector).click(function () {
$(".m_cookie").hide();
});
})
the $ (selector) is not recognized, and the DOM event of 'click' either. It is assumed that in typescript it accepts the javascript language, so I do not understand why that error comes out.