perf(projects): env config

This commit is contained in:
Soybean
2023-11-20 21:32:55 +08:00
parent 8081e19ebc
commit 1bac3b78d7
3 changed files with 11 additions and 6 deletions

View File

@ -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>;
}
/**