WIP: TypeScript bugs

This commit is contained in:
Cindy Chang
2024-07-09 13:46:15 +08:00
parent af5ab081de
commit 5c46fd6ce7
9 changed files with 139 additions and 137 deletions
+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;
}
}