Browse Source

chore(internal): 添加getEnvConfig返回类型

invalid w 1 year ago
parent
commit
e456f54ded
1 changed files with 6 additions and 1 deletions
  1. 6 1
      internal/vite-config/src/utils/env.ts

+ 6 - 1
internal/vite-config/src/utils/env.ts

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