UNPKG

vike

Version:

The Framework *You* Control - Next.js & Nuxt alternative for unprecedented flexibility and dependability.

13 lines (12 loc) 428 B
export { resolveUrlPathname }; /** Given a `routeString` and `routeParams`, resolve `urlPathname`. * * Basically, the correct implementation of following: * ```js * let urlPathname = routeString * Object.entries(routeParams).forEach(([key, val]) => { * urlPathname = urlPathname.replaceAll(key, val) * }) * ``` */ declare function resolveUrlPathname(routeString: string, routeParams: Record<string, string>): string;