You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use this wonderful plugin in a Typescript / Webpack project and it would appear it is not finding the Typescript definitions (eg. the resizable() function for the JQuery interface). I did a little digging and it would appear that package.json should (could) have a types: property to indicate where the TS type definitions are located (see: https://www.typescriptlang.org/docs/handbook/declaration-files/publishing.html).
So something like:
"types": "./dist/jquery-resizable.d.ts",
Unless I'm mistaken. Or is there another way to do this? Still a bit fresh with typescript/webpack here.
EDIT: Can make it work by adding a reference to index.d.ts:
I'm trying to use this wonderful plugin in a Typescript / Webpack project and it would appear it is not finding the Typescript definitions (eg. the resizable() function for the JQuery interface). I did a little digging and it would appear that package.json should (could) have a types: property to indicate where the TS type definitions are located (see: https://www.typescriptlang.org/docs/handbook/declaration-files/publishing.html).
So something like:
Unless I'm mistaken. Or is there another way to do this? Still a bit fresh with typescript/webpack here.
EDIT: Can make it work by adding a reference to
index.d.ts
:/// <reference types="jquery-resizable-dom/dist/jquery-resizable.js" />
The text was updated successfully, but these errors were encountered: