PATH:
opt
/
bitninja-dispatcher
/
node_modules
/
tsconfig-paths
/
lib
import * as Filesystem from "./filesystem"; import * as MappingEntry from "./mapping-entry"; /** * Function that can match a path */ export interface MatchPath { (requestedModule: string, readJson?: Filesystem.ReadJsonSync, fileExists?: (name: string) => boolean, extensions?: ReadonlyArray<string>): string | undefined; } /** * Creates a function that can resolve paths according to tsconfig paths property. * * @param absoluteBaseUrl Absolute version of baseUrl as specified in tsconfig. * @param paths The paths as specified in tsconfig. * @param mainFields A list of package.json field names to try when resolving module files. Select a nested field using an array of field names. * @param addMatchAll Add a match-all "*" rule if none is present * @returns a function that can resolve paths. */ export declare function createMatchPath(absoluteBaseUrl: string, paths: { [key: string]: Array<string>; }, mainFields?: (string | string[])[], addMatchAll?: boolean): MatchPath; /** * Finds a path from tsconfig that matches a module load request. * * @param absolutePathMappings The paths to try as specified in tsconfig but resolved to absolute form. * @param requestedModule The required module name. * @param readJson Function that can read json from a path (useful for testing). * @param fileExists Function that checks for existence of a file at a path (useful for testing). * @param extensions File extensions to probe for (useful for testing). * @param mainFields A list of package.json field names to try when resolving module files. Select a nested field using an array of field names. * @returns the found path, or undefined if no path was found. */ export declare function matchFromAbsolutePaths(absolutePathMappings: ReadonlyArray<MappingEntry.MappingEntry>, requestedModule: string, readJson?: Filesystem.ReadJsonSync, fileExists?: Filesystem.FileExistsSync, extensions?: Array<string>, mainFields?: (string | string[])[]): string | undefined;
[-] register.js.map
[edit]
[-] config-loader.d.ts
[edit]
[-] filesystem.js.map
[edit]
[-] match-path-sync.js.map
[edit]
[-] match-path-async.js
[edit]
[-] index.js.map
[edit]
[+]
..
[-] config-loader.js.map
[edit]
[-] filesystem.js
[edit]
[-] index.d.ts
[edit]
[-] tsconfig-loader.js
[edit]
[-] mapping-entry.js
[edit]
[-] filesystem.d.ts
[edit]
[-] config-loader.js
[edit]
[-] match-path-sync.js
[edit]
[-] tsconfig-loader.js.map
[edit]
[-] register.d.ts
[edit]
[-] tsconfig-loader.d.ts
[edit]
[-] mapping-entry.js.map
[edit]
[-] index.js
[edit]
[-] match-path-async.d.ts
[edit]
[-] try-path.js.map
[edit]
[-] mapping-entry.d.ts
[edit]
[-] match-path-async.js.map
[edit]
[-] register.js
[edit]
[+]
__tests__
[-] try-path.d.ts
[edit]
[-] try-path.js
[edit]
[-] match-path-sync.d.ts
[edit]