@servicenow/sdk - v4.4.1
    Preparing search index...

    Interface ModuleResolutionCache

    Cached resolutions per containing directory. This assumes that any module id will have the same resolution for sibling files located in the same folder.

    interface ModuleResolutionCache {
        clear(): void;
        getFromDirectoryCache(
            name: string,
            mode: ResolutionMode,
            directoryName: string,
            redirectedReference: ResolvedProjectReference | undefined,
        ): ResolvedModuleWithFailedLookupLocations | undefined;
        getFromNonRelativeNameCache(
            nonRelativeName: string,
            mode: ResolutionMode,
            directoryName: string,
            redirectedReference: ResolvedProjectReference | undefined,
        ): ResolvedModuleWithFailedLookupLocations | undefined;
        getOrCreateCacheForDirectory(
            directoryName: string,
            redirectedReference?: ResolvedProjectReference,
        ): ModeAwareCache<ResolvedModuleWithFailedLookupLocations>;
        getOrCreateCacheForModuleName(
            nonRelativeModuleName: string,
            mode: ResolutionMode,
            redirectedReference?: ResolvedProjectReference,
        ): PerModuleNameCache;
        getOrCreateCacheForNonRelativeName(
            nonRelativeName: string,
            mode: ResolutionMode,
            redirectedReference?: ResolvedProjectReference,
        ): PerNonRelativeNameCache<ResolvedModuleWithFailedLookupLocations>;
        getPackageJsonInfoCache(): PackageJsonInfoCache;
        update(options: tsc.CompilerOptions): void;
    }

    Hierarchy (View Summary)

    Index

    Methods

    • Returns void

    • Updates with the current compilerOptions the cache will operate with. This updates the redirects map as well if needed so module resolutions are cached if they can across the projects

      Parameters

      Returns void