Skip to content

Commit

Permalink
feat: make import.meta.glob and import.meta.globEager generic (#5073
Browse files Browse the repository at this point in the history
)
  • Loading branch information
michaeloliverx committed Feb 12, 2022
1 parent 5e26d5f commit 78e84c8
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions packages/vite/types/importMeta.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,25 +59,15 @@ interface ImportMeta {

readonly env: ImportMetaEnv

glob(
glob<Module = { [key: string]: any }>(
pattern: string,
options?: AssertOptions
): Record<
string,
() => Promise<{
[key: string]: any
}>
>
): Record<string, () => Promise<Module>>

globEager(
globEager<Module = { [key: string]: any }>(
pattern: string,
options?: AssertOptions
): Record<
string,
{
[key: string]: any
}
>
): Record<string, Module>
}

interface ImportMetaEnv {
Expand Down

0 comments on commit 78e84c8

Please sign in to comment.