refactor: ♻️ vue 文件类型声明位置调整
This commit is contained in:
1 parent
43ac2a823c
commit
e597853e5b
2 files changed
+5
-6
No files matched your search
Vendored
-6
@@ -1,11 +1,5 @@
|
|||||||
// https://cn.vitejs.dev/guide/env-and-mode
|
// https://cn.vitejs.dev/guide/env-and-mode
|
||||||
|
|
||||||
declare module "*.vue" {
|
|
||||||
import type { DefineComponent } from "vue";
|
|
||||||
const component: DefineComponent<object, object, any>;
|
|
||||||
export default component;
|
|
||||||
}
|
|
||||||
|
|
||||||
// TypeScript 类型提示都为 string: https://github.com/vitejs/vite/issues/6930
|
// TypeScript 类型提示都为 string: https://github.com/vitejs/vite/issues/6930
|
||||||
interface ImportMetaEnv {
|
interface ImportMetaEnv {
|
||||||
/** 应用端口 */
|
/** 应用端口 */
|
||||||
|
|||||||
Vendored
+5
@@ -0,0 +1,5 @@
|
|||||||
|
declare module "*.vue" {
|
||||||
|
import type { DefineComponent } from "vue";
|
||||||
|
const component: DefineComponent<{}, {}, any>;
|
||||||
|
export default component;
|
||||||
|
}
|
||||||
Reference in new issue
Block a user