feat: 添加getEnvConfig返回类型

pull/38/head
xingyu 2023-10-10 11:56:35 +08:00
parent b4f6ef1465
commit 0efc29e5ac
1 changed files with 6 additions and 1 deletions

View File

@ -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 {