Skip to content

Commit

Permalink
fix(types): add missing options parameter to importMeta (#6433)
Browse files Browse the repository at this point in the history
  • Loading branch information
OysterD3 committed Jan 11, 2022
1 parent 028cbeb commit ccf7d79
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions packages/vite/types/importMeta.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

/* eslint-disable @typescript-eslint/consistent-type-imports */

import type { AssertOptions } from '../src/node/importGlob'

interface ImportMeta {
url: string

Expand Down Expand Up @@ -50,14 +52,20 @@ interface ImportMeta {

readonly env: ImportMetaEnv

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

globEager(pattern: string): Record<
globEager(
pattern: string,
options?: AssertOptions
): Record<
string,
{
[key: string]: any
Expand Down

0 comments on commit ccf7d79

Please sign in to comment.