UNPKG

vike

Version:

(Replaces Next.js/Nuxt) 🔨 Composable framework to build advanced applications with flexibility and stability.

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;