feat: 添加getEnvConfig返回类型
parent
b4f6ef1465
commit
0efc29e5ac
|
@ -65,7 +65,12 @@ function getConfFiles() {
|
|||
* @param match prefix
|
||||
* @param confFiles ext
|
||||
*/
|
||||
export function getEnvConfig(match = 'VITE_GLOB_', confFiles = getConfFiles()) {
|
||||
export function getEnvConfig(
|
||||
match = 'VITE_GLOB_',
|
||||
confFiles = getConfFiles(),
|
||||
): Promise<{
|
||||
[key: string]: string;
|
||||
}> {
|
||||
let envConfig = {}
|
||||
confFiles.forEach((item) => {
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue