Skip to content

Commit

Permalink
chore(internal): 添加getEnvConfig返回类型
Browse files Browse the repository at this point in the history
  • Loading branch information
wangjue666 committed Oct 9, 2023
1 parent e25af8d commit e456f54
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion internal/vite-config/src/utils/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,12 @@ function getConfFiles() {
* @param match prefix
* @param confFiles ext
*/
export async function getEnvConfig(match = 'VITE_GLOB_', confFiles = getConfFiles()) {
export async function getEnvConfig(
match = 'VITE_GLOB_',
confFiles = getConfFiles(),
): Promise<{
[key: string]: string;
}> {
let envConfig = {};

for (const confFile of confFiles) {
Expand Down

0 comments on commit e456f54

Please sign in to comment.