Skip to content

Commit

Permalink
Tighten the types
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon committed Dec 10, 2020
1 parent 12f9c38 commit 3c29552
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ type ResolveFunction = (
string,
ResolveContext,
ResolveFunction,
) => Promise<{url: string}>;
) => {url: string} | Promise<{url: string}>;

type GetSourceContext = {
format: string,
Expand Down Expand Up @@ -133,7 +133,7 @@ function addExportNames(names, node) {
function resolveClientImport(
specifier: string,
parentURL: string,
): Promise<{url: string}> {
): {url: string} | Promise<{url: string}> {
// Resolve an import specifier as if it was loaded by the client. This doesn't use
// the overrides that this loader does but instead reverts to the default.
// This resolution algorithm will not necessarily have the same configuration
Expand Down

0 comments on commit 3c29552

Please sign in to comment.