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