@@ -349,7 +349,7 @@ interface PackageJson extends PackageJsonPathFields {
349
349
}
350
350
351
351
function readPackageJsonField < K extends MatchingKeys < PackageJson , string | undefined > > ( jsonContent : PackageJson , fieldName : K , typeOfTag : "string" , state : ModuleResolutionState ) : PackageJson [ K ] | undefined ;
352
- function readPackageJsonField < K extends MatchingKeys < PackageJson , object | undefined > > ( jsonContent : PackageJson , fieldName : K , typeOfTag : "object" , state : ModuleResolutionState ) : PackageJson [ K ] | undefined ;
352
+ function readPackageJsonField < K extends MatchingKeys < PackageJson , object | undefined > > ( jsonContent : PackageJson , fieldName : K , typeOfTag : "object" , state : ModuleResolutionState ) : PackageJson [ K ] | undefined ; // eslint-disable-line @typescript-eslint/unified-signatures
353
353
function readPackageJsonField < K extends keyof PackageJson > ( jsonContent : PackageJson , fieldName : K , typeOfTag : "string" | "object" , state : ModuleResolutionState ) : PackageJson [ K ] | undefined {
354
354
if ( ! hasProperty ( jsonContent , fieldName ) ) {
355
355
if ( state . traceEnabled ) {
@@ -1327,7 +1327,7 @@ export function createModuleResolutionCache(
1327
1327
getCanonicalFileName : ( s : string ) => string ,
1328
1328
options ?: CompilerOptions ,
1329
1329
packageJsonInfoCache ?: PackageJsonInfoCache ,
1330
- optionsToRedirectsKey ?: Map < CompilerOptions , RedirectsCacheKey > ,
1330
+ optionsToRedirectsKey ?: Map < CompilerOptions , RedirectsCacheKey > , // eslint-disable-line @typescript-eslint/unified-signatures
1331
1331
) : ModuleResolutionCache ;
1332
1332
export function createModuleResolutionCache (
1333
1333
currentDirectory : string ,
@@ -1360,7 +1360,7 @@ export function createTypeReferenceDirectiveResolutionCache(
1360
1360
getCanonicalFileName : ( s : string ) => string ,
1361
1361
options ?: CompilerOptions ,
1362
1362
packageJsonInfoCache ?: PackageJsonInfoCache ,
1363
- optionsToRedirectsKey ?: Map < CompilerOptions , RedirectsCacheKey > ,
1363
+ optionsToRedirectsKey ?: Map < CompilerOptions , RedirectsCacheKey > , // eslint-disable-line @typescript-eslint/unified-signatures
1364
1364
) : TypeReferenceDirectiveResolutionCache ;
1365
1365
export function createTypeReferenceDirectiveResolutionCache (
1366
1366
currentDirectory : string ,
@@ -1754,7 +1754,7 @@ function tryResolveJSModuleWorker(moduleName: string, initialDir: string, host:
1754
1754
}
1755
1755
export function bundlerModuleNameResolver ( moduleName : string , containingFile : string , compilerOptions : CompilerOptions , host : ModuleResolutionHost , cache ?: ModuleResolutionCache , redirectedReference ?: ResolvedProjectReference ) : ResolvedModuleWithFailedLookupLocations ;
1756
1756
/** @internal */
1757
- export function bundlerModuleNameResolver ( moduleName : string , containingFile : string , compilerOptions : CompilerOptions , host : ModuleResolutionHost , cache ?: ModuleResolutionCache , redirectedReference ?: ResolvedProjectReference , conditions ?: string [ ] ) : ResolvedModuleWithFailedLookupLocations ;
1757
+ export function bundlerModuleNameResolver ( moduleName : string , containingFile : string , compilerOptions : CompilerOptions , host : ModuleResolutionHost , cache ?: ModuleResolutionCache , redirectedReference ?: ResolvedProjectReference , conditions ?: string [ ] ) : ResolvedModuleWithFailedLookupLocations ; // eslint-disable-line @typescript-eslint/unified-signatures
1758
1758
export function bundlerModuleNameResolver ( moduleName : string , containingFile : string , compilerOptions : CompilerOptions , host : ModuleResolutionHost , cache ?: ModuleResolutionCache , redirectedReference ?: ResolvedProjectReference , conditions ?: string [ ] ) : ResolvedModuleWithFailedLookupLocations {
1759
1759
const containingDirectory = getDirectoryPath ( containingFile ) ;
1760
1760
let extensions = compilerOptions . noDtsResolution ? Extensions . ImplementationFiles : Extensions . TypeScript | Extensions . JavaScript | Extensions . Declaration ;
0 commit comments