NeahNew/node_modules/next/dist/server/lib/router-utils/decode-path-params.d.ts
2025-05-03 14:17:46 +02:00

10 lines
345 B
TypeScript

/**
* We only encode path delimiters for path segments from
* getStaticPaths so we need to attempt decoding the URL
* to match against and only escape the path delimiters
* this allows non-ascii values to be handled e.g.
* Japanese characters.
* */
declare function decodePathParams(pathname: string): string;
export { decodePathParams };