@furystack/shades
Version:
A lightweight UI framework for FuryStack with JSX support
7 lines • 342 B
TypeScript
/**
* Resolves a `path-to-regexp` URL pattern (e.g. `/users/:id`) by substituting
* `params` and string-coercing each value. Used internally by routing
* helpers to build hrefs from typed param objects.
*/
export declare const compileRoute: <T extends object>(url: string, params: T) => string;
//# sourceMappingURL=compile-route.d.ts.map