PHP 7.4.33
Preview: match-path-sync.d.ts Size: 1.80 KB
/var/www/uibuilder.cmshelp.dk/httpdocs/node_modules/tsconfig-paths/lib/match-path-sync.d.ts
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.
 * @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[], 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.
 * @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 | undefined;

Directory Contents

Dirs: 1 × Files: 30
Name Size Perms Modified Actions
__tests__ DIR
- drwxr-xr-x 2025-03-28 11:04:37
Edit Download
1.11 KB lrw-r--r-- 2025-03-28 11:04:36
Edit Download
2.06 KB lrw-r--r-- 2025-03-28 11:04:36
Edit Download
1.47 KB lrw-r--r-- 2025-03-28 11:04:36
Edit Download
1.10 KB lrw-r--r-- 2025-03-28 11:04:36
Edit Download
1.70 KB lrw-r--r-- 2025-03-28 11:04:36
Edit Download
1.30 KB lrw-r--r-- 2025-03-28 11:04:36
Edit Download
445 B lrw-r--r-- 2025-03-28 11:04:36
Edit Download
1.34 KB lrw-r--r-- 2025-03-28 11:04:36
Edit Download
305 B lrw-r--r-- 2025-03-28 11:04:36
Edit Download
648 B lrw-r--r-- 2025-03-28 11:04:37
Edit Download
2.05 KB lrw-r--r-- 2025-03-28 11:04:37
Edit Download
1.20 KB lrw-r--r-- 2025-03-28 11:04:37
Edit Download
1.06 KB lrw-r--r-- 2025-03-28 11:04:37
Edit Download
5.12 KB lrw-r--r-- 2025-03-28 11:04:37
Edit Download
3.45 KB lrw-r--r-- 2025-03-28 11:04:37
Edit Download
1.80 KB lrw-r--r-- 2025-03-28 11:04:37
Edit Download
4.20 KB lrw-r--r-- 2025-03-28 11:04:37
Edit Download
2.31 KB lrw-r--r-- 2025-03-28 11:04:37
Edit Download
85 B lrw-r--r-- 2025-03-28 11:04:37
Edit Download
386 B lrw-r--r-- 2025-03-28 11:04:37
Edit Download
421 B lrw-r--r-- 2025-03-28 11:04:37
Edit Download
266 B lrw-r--r-- 2025-03-28 11:04:37
Edit Download
3.26 KB lrw-r--r-- 2025-03-28 11:04:37
Edit Download
1.86 KB lrw-r--r-- 2025-03-28 11:04:37
Edit Download
816 B lrw-r--r-- 2025-03-28 11:04:37
Edit Download
3.67 KB lrw-r--r-- 2025-03-28 11:04:37
Edit Download
2.71 KB lrw-r--r-- 2025-03-28 11:04:37
Edit Download
1.03 KB lrw-r--r-- 2025-03-28 11:04:37
Edit Download
5.56 KB lrw-r--r-- 2025-03-28 11:04:37
Edit Download
4.02 KB lrw-r--r-- 2025-03-28 11:04:37
Edit Download
If ZipArchive is unavailable, a .tar will be created (no compression).