Skip to content

Commit

Permalink
fix(types): dynamic import in import.meta (#6456)
Browse files Browse the repository at this point in the history
ref #6433
  • Loading branch information
ydcjeff authored Jan 11, 2022
1 parent ccf7d79 commit 5d7b4c3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/vite/types/importMeta.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

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

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

interface ImportMeta {
url: string

Expand Down Expand Up @@ -54,7 +52,7 @@ interface ImportMeta {

glob(
pattern: string,
options?: AssertOptions
options?: import('../src/node/importGlob').AssertOptions
): Record<
string,
() => Promise<{
Expand All @@ -64,7 +62,7 @@ interface ImportMeta {

globEager(
pattern: string,
options?: AssertOptions
options?: import('../src/node/importGlob').AssertOptions
): Record<
string,
{
Expand Down

0 comments on commit 5d7b4c3

Please sign in to comment.