mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
perf(projects): env config
This commit is contained in:
9
src/typings/app.d.ts
vendored
9
src/typings/app.d.ts
vendored
@ -523,10 +523,15 @@ declare namespace App {
|
||||
*/
|
||||
type EnvType = 'dev' | 'test' | 'prod';
|
||||
|
||||
/**
|
||||
* other baseURL key
|
||||
*/
|
||||
type OtherBaseURLKey = 'demo';
|
||||
|
||||
/**
|
||||
* the backend service config
|
||||
*/
|
||||
interface ServiceConfig {
|
||||
interface ServiceConfig<T extends OtherBaseURLKey = OtherBaseURLKey> {
|
||||
/**
|
||||
* the backend service base url
|
||||
*/
|
||||
@ -534,7 +539,7 @@ declare namespace App {
|
||||
/**
|
||||
* other backend service base url map
|
||||
*/
|
||||
otherBaseURL: Record<string, string>;
|
||||
otherBaseURL: Record<T, string>;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user