when use it in typescript ,it cannot be recognized correctly
See original GitHub issueMy temporary solution is:
// shims-vue.d.ts
declare module "*.vue" {
import { defineComponent } from "vue";
const component: ReturnType<typeof defineComponent>;
export default component;
}
// add
declare module "vue-draggable-next" {
export { VueDraggableNext } from "vue-draggable-next/dist/src/index";
}
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Typescript compiler doesn't recognize that an object entry ...
The behaviour you want is that of the noUncheckedIndexedAccess flag, which you can enable on the command-line or in your tsconfig.json file.
Read more >Function param with generic type are not recognized correctly
I don't see a compile error in any of typescript@2.6 , typescript@2.7 , typescript@next . Protocol is an empty type, so almost anything...
Read more >Documentation - Narrowing - TypeScript
TypeScript follows possible paths of execution that our programs can take to analyze the most specific possible type of a value at a...
Read more >False errors in Typescript files, import statements are not ...
False errors in Typescript files, import statements are not correctly recognized ... While working with Typescript I import dependencies from other files.
Read more >TypeScript tutorial with Visual Studio Code
Visual Studio Code includes TypeScript language support but does not include the TypeScript compiler, tsc . You will need to install the TypeScript...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@bigmeow is something I have it on my plan for timing just use
declare module 'vue-draggable-next'
Just write like this👇
declare module ‘vue-draggable-next’;