WIP: TypeScript bugs
This commit is contained in:
1 parent
af5ab081de
commit
5c46fd6ce7
9 files changed
+139
-137
No files matched your search
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
interface ImportMetaEnv {
|
||||
readonly VITE_APP_TITLE: string;
|
||||
readonly BASE_URL: string;
|
||||
// 更多環境變量...
|
||||
}
|
||||
|
||||
interface ImportMeta {
|
||||
readonly env: ImportMetaEnv;
|
||||
}
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
import { AxiosInstance } from 'axios';
|
||||
|
||||
declare module 'pinia' {
|
||||
export interface PiniaCustomProperties {
|
||||
$axios: AxiosInstance;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user