I try to use the hasData
method from jQuery in typescript like this:
$('.my-element').hasData("my-data")
But unfortunately it is not working. The error I got is
(TS) Property 'hasData' does not exist on type 'jQuery'.
The Version is jquery-3.4.1.js.
Can someone help?