Permalink
Cannot retrieve contributors at this time
15 lines (15 sloc)
816 Bytes
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
codeql-action/node_modules/tsconfig-paths/lib/try-path.d.ts
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |