Sha256: 8bec22840a34ba59fe63536ff90cb41ee031fefc6337d9bdab188aa27fed37e4

Contents?: true

Size: 816 Bytes

Versions: 41

Compression:

Stored size: 816 Bytes

Contents

import { MappingEntry } from "./mapping-entry";
export interface TryPath {
    readonly type: "file" | "extension" | "index" | "package";
    readonly path: string;
}
/**
 * Builds a list of all physical paths to try by:
 * 1. Check for file named exactly as request.
 * 2. Check for files named as request ending in any of the extensions.
 * 3. Check for file specified in package.json's main property.
 * 4. Check for files named as request ending in "index" with any of the extensions.
 */
export declare function getPathsToTry(extensions: ReadonlyArray<string>, absolutePathMappings: ReadonlyArray<MappingEntry>, requestedModule: string): ReadonlyArray<TryPath> | undefined;
export declare function getStrippedPath(tryPath: TryPath): string;
export declare function exhaustiveTypeException(check: never): never;

Version data entries

41 entries across 41 versions & 2 rubygems

Version Path
immosquare-cleaner-0.1.51 node_modules/tsconfig-paths/lib/try-path.d.ts
immosquare-cleaner-0.1.50 node_modules/tsconfig-paths/lib/try-path.d.ts
immosquare-cleaner-0.1.49 node_modules/tsconfig-paths/lib/try-path.d.ts
immosquare-cleaner-0.1.48 node_modules/tsconfig-paths/lib/try-path.d.ts
immosquare-cleaner-0.1.47 node_modules/tsconfig-paths/lib/try-path.d.ts
immosquare-cleaner-0.1.46 node_modules/tsconfig-paths/lib/try-path.d.ts
immosquare-cleaner-0.1.45 node_modules/tsconfig-paths/lib/try-path.d.ts
immosquare-cleaner-0.1.44 node_modules/tsconfig-paths/lib/try-path.d.ts
immosquare-cleaner-0.1.43 node_modules/tsconfig-paths/lib/try-path.d.ts
immosquare-cleaner-0.1.42 node_modules/tsconfig-paths/lib/try-path.d.ts
immosquare-cleaner-0.1.41 node_modules/tsconfig-paths/lib/try-path.d.ts
immosquare-cleaner-0.1.40 node_modules/tsconfig-paths/lib/try-path.d.ts
immosquare-cleaner-0.1.39 node_modules/tsconfig-paths/lib/try-path.d.ts
immosquare-cleaner-0.1.38 node_modules/tsconfig-paths/lib/try-path.d.ts
immosquare-cleaner-0.1.32 node_modules/tsconfig-paths/lib/try-path.d.ts
immosquare-cleaner-0.1.31 node_modules/tsconfig-paths/lib/try-path.d.ts
immosquare-cleaner-0.1.30 node_modules/tsconfig-paths/lib/try-path.d.ts
immosquare-cleaner-0.1.29 node_modules/tsconfig-paths/lib/try-path.d.ts
immosquare-cleaner-0.1.28 node_modules/tsconfig-paths/lib/try-path.d.ts
immosquare-cleaner-0.1.27 node_modules/tsconfig-paths/lib/try-path.d.ts