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

    Interface PerDirectoryResolutionCache<T>

    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 PerDirectoryResolutionCache<T> {
        clear(): void;
        getFromDirectoryCache(
            name: string,
            mode: ResolutionMode,
            directoryName: string,
            redirectedReference: ResolvedProjectReference | undefined,
        ): T | undefined;
        getOrCreateCacheForDirectory(
            directoryName: string,
            redirectedReference?: ResolvedProjectReference,
        ): ModeAwareCache<T>;
        update(options: tsc.CompilerOptions): void;
    }

    Type Parameters

    • T

    Hierarchy (View Summary)

    Index

    Methods

    • Returns void

    • Parameters

      Returns T | undefined

    • 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