Skip to content

Commit

Permalink
fix(createResolve): make url optional
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Sep 20, 2021
1 parent 329b577 commit 40de473
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.d.ts
Expand Up @@ -18,7 +18,7 @@ export function resolve (id: string, opts: ResolveOptions) : Promise<string>
export function resolvePath (id: string, opts: ResolveOptions) : Promise<string>
export function resolveSync (id: string, opts: ResolveOptions) : string
export function resolvePathSync (id: string, opts: ResolveOptions) : string
export function createResolve (defaults: ResolveOptions) : (id: string, url: string | URL) => Promise<string>
export function createResolve (defaults: ResolveOptions) : (id: string, url?: string | URL) => Promise<string>
export function resolveImports (code: string, opts: ResolveOptions) : Promise<string>


Expand Down

0 comments on commit 40de473

Please sign in to comment.