denormalize-page-path.d.ts 353 B

123456789
  1. /**
  2. * Performs the opposite transformation of `normalizePagePath`. Note that
  3. * this function is not idempotent either in cases where there are multiple
  4. * leading `/index` for the page. Examples:
  5. * - `/index` -> `/`
  6. * - `/index/foo` -> `/foo`
  7. * - `/index/index` -> `/index`
  8. */
  9. export declare function denormalizePagePath(page: string): string;