UNPKG

@wroud/navigation

Version:

A flexible, pattern-matching navigation system for JavaScript applications with built-in routing, browser integration, and navigation state management

16 lines 834 B
import type { RouteParams, RouteParamValue } from "../IRouteMatcher.js"; /** * Validates that all required parameters are present in the params object. * Throws descriptive errors for missing or invalid parameters. * Optionally validates parameter types if paramTypes is provided. */ export declare function validateParameters(pattern: string, segments: string[], params: RouteParams, paramTypes?: Record<string, string>): void; /** * Builds URL segments from a pattern and parameters */ export declare function buildUrlSegments(segments: string[], params: RouteParams, paramTypes?: Record<string, string>): string[]; /** * Convert a raw string value according to declared parameter type. */ export declare function convertParamValue(value: string, type: string): RouteParamValue; //# sourceMappingURL=parameter-utils.d.ts.map