bpms_site/.svn/pristine/e5/e5e9ef2dca67ddba3e38f9fb1429fe80f56a9a4e.svn-base
2025-11-02 16:38:49 +03:30

11 lines
451 B
Plaintext

/**
* Takes a page and transforms it into its file counterpart ensuring that the
* output is normalized. Note this function is not idempotent because a page
* `/index` can be referencing `/index/index.js` and `/index/index` could be
* referencing `/index/index/index.js`. Examples:
* - `/` -> `/index`
* - `/index/foo` -> `/index/index/foo`
* - `/index` -> `/index/index`
*/
export declare function normalizePagePath(page: string): string;