WIP: TypeScript bugs

This commit is contained in:
Cindy Chang committed 2024-07-09 13:46:15 +08:00
1 parent af5ab081de
commit 5c46fd6ce7
9 files changed
+139 -137

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
interface ImportMetaEnv {
readonly VITE_APP_TITLE: string;
readonly BASE_URL: string;
// 更多環境變量...
}
interface ImportMeta {
readonly env: ImportMetaEnv;
}
+7
View File
@@ -0,0 +1,7 @@
import { AxiosInstance } from 'axios';
declare module 'pinia' {
export interface PiniaCustomProperties {
$axios: AxiosInstance;
}
}