UNPKG

@nxworker/workspace

Version:

Nx plugin providing generators for managing workspace files, including the move-file generator for safely moving files between projects while updating all imports

11 lines (10 loc) 404 B
/** * Normalizes a path mapping entry to its first string value. * * TypeScript path mappings can be a string or an array of strings. * This function normalizes to a single string. * * @param pathEntry - Single string or string array entry from tsconfig paths * @returns The first path string or null when not resolvable */ export declare function toFirstPath(pathEntry: unknown): string | null;