Remove shim, add correct type to tsconfig for vite
This commit is contained in:
parent
10d28c73f4
commit
370a391966
|
|
@ -1,32 +0,0 @@
|
|||
// from https://stackoverflow.com/questions/64213461/vuejs-typescript-cannot-find-module-components-navigation-or-its-correspon
|
||||
// declare module "*.vue" {
|
||||
// import Vue from 'vue';
|
||||
// export default Vue;
|
||||
// }
|
||||
|
||||
// for Vue 3 compat
|
||||
declare module 'vue' {
|
||||
import { CompatVue } from '@vue/runtime-dom';
|
||||
const Vue: CompatVue;
|
||||
export default Vue;
|
||||
export * from '@vue/runtime-dom';
|
||||
const { configureCompat } = Vue;
|
||||
export { configureCompat };
|
||||
}
|
||||
|
||||
// for Vue 3
|
||||
// declare module '*.vue' {
|
||||
// import type { DefineComponent } from 'vue';
|
||||
// const component: DefineComponent<{}, {}, any>;
|
||||
// export default component;
|
||||
// }
|
||||
|
||||
// ugly hack to make types for those two packages
|
||||
declare module 'vue-vimeo-player' {
|
||||
const plugin: any;
|
||||
export default plugin;
|
||||
}
|
||||
declare module 'vue-matomo' {
|
||||
const plugin: any;
|
||||
export default plugin;
|
||||
}
|
||||
|
|
@ -10,6 +10,7 @@
|
|||
"strict": true,
|
||||
"moduleResolution": "node",
|
||||
"baseUrl": "./src",
|
||||
"types": ["vite/client"],
|
||||
"paths": {
|
||||
"@/*": ["./*"]
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue