WIP: TypeScript bugs
This commit is contained in:
9
src/types/env.d.ts
vendored
Normal file
9
src/types/env.d.ts
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
interface ImportMetaEnv {
|
||||
readonly VITE_APP_TITLE: string;
|
||||
readonly BASE_URL: string;
|
||||
// 更多環境變量...
|
||||
}
|
||||
|
||||
interface ImportMeta {
|
||||
readonly env: ImportMetaEnv;
|
||||
}
|
||||
7
src/types/store.d.ts
vendored
Normal file
7
src/types/store.d.ts
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import { AxiosInstance } from 'axios';
|
||||
|
||||
declare module 'pinia' {
|
||||
export interface PiniaCustomProperties {
|
||||
$axios: AxiosInstance;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user