Currently trying to import anything from vue-draggable-plus in TS file with tsconfig { "compilerOptions": { "module": "ESNext", "moduleResolution": "Bundler", "strict": true } } results in TS error.
This PR fixes provided typings by correctly setting "types" field in package.json.
Currently trying to import anything from
vue-draggable-plus
in TS file with tsconfig{ "compilerOptions": { "module": "ESNext", "moduleResolution": "Bundler", "strict": true } }
results in TS error. This PR fixes provided typings by correctly setting "types" field inpackage.json
.For more info see this issue: https://github.com/microsoft/TypeScript/issues/52363 Also there is this nifty tool to check if types are correct: https://arethetypeswrong.github.io/?p=vue-draggable-plus
This is not a perfect fix, as
"module": "Node16"
still won't work, but fixing that would require reconsidering usage of UMD builds.