Remove ts.{Map,Set,ESMap,Iterator} and associated types (#51439)

This commit is contained in:
Jake Bailey
2022-11-09 15:06:31 -08:00
committed by GitHub
parent d798493647
commit 9f64a3a58c
147 changed files with 1204 additions and 1470 deletions

View File

@@ -1,5 +1,5 @@
import {
Debug, ESMap, FileWatcher, Map, ModulePath, ModuleSpecifierCache, ModuleSpecifierOptions, nodeModulesPathPart, Path,
Debug, FileWatcher, ModulePath, ModuleSpecifierCache, ModuleSpecifierOptions, nodeModulesPathPart, Path,
ResolvedModuleSpecifierInfo, UserPreferences,
} from "./_namespaces/ts";
@@ -10,8 +10,8 @@ export interface ModuleSpecifierResolutionCacheHost {
/** @internal */
export function createModuleSpecifierCache(host: ModuleSpecifierResolutionCacheHost): ModuleSpecifierCache {
let containedNodeModulesWatchers: ESMap<string, FileWatcher> | undefined;
let cache: ESMap<Path, ResolvedModuleSpecifierInfo> | undefined;
let containedNodeModulesWatchers: Map<string, FileWatcher> | undefined;
let cache: Map<Path, ResolvedModuleSpecifierInfo> | undefined;
let currentKey: string | undefined;
const result: ModuleSpecifierCache = {
get(fromFileName, toFileName, preferences, options) {