UNPKG

next

Version:

The React Framework

10 lines (9 loc) 353 B
/** * Performs the opposite transformation of `normalizePagePath`. Note that * this function is not idempotent either in cases where there are multiple * leading `/index` for the page. Examples: * - `/index` -> `/` * - `/index/foo` -> `/foo` * - `/index/index` -> `/index` */ export declare function denormalizePagePath(page: string): string;