securityos/node_modules/next/dist/shared/lib/page-path/denormalize-page-path.d.ts

10 lines
353 B
TypeScript
Raw Normal View History

2024-09-06 15:32:35 +00:00
/**
* 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;