diff --git a/lib/ResolverFactory.js b/lib/ResolverFactory.js index bf9adbba..90d7bf77 100644 --- a/lib/ResolverFactory.js +++ b/lib/ResolverFactory.js @@ -5,8 +5,8 @@ "use strict"; -const versions = require("process").versions; const findPnpApi = require("module").findPnpApi; +const versions = require("process").versions; const Resolver = require("./Resolver"); const { getType, PathType } = require("./util/path"); diff --git a/types.d.ts b/types.d.ts index 2e3e0bd1..1a652fb2 100644 --- a/types.d.ts +++ b/types.d.ts @@ -170,7 +170,11 @@ type Plugin = | { apply: (arg0: Resolver) => void } | ((this: Resolver, arg1: Resolver) => void); declare interface PnpApiImpl { - resolveToUnqualified: (arg0: string, arg1: string, arg2: object) => string | null; + resolveToUnqualified: ( + arg0: string, + arg1: string, + arg2: object + ) => null | string; } declare interface PossibleFileSystemError { code?: string;