I recently encountered an issue in my application where I used the following interface. It worked perfectly with jQuery 2.0:
interface JQuery{
data(key: any): any;
}
However, upon upgrading to jQuery 3.2, the following lint errors were thrown:
All declarations of 'JQuery' must have identical type parameters. interface JQuery namespace JQuery
My Typescript Version is 2.3. Can anyone suggest how to resolve this issue or modify the interface accordingly?