@muryp/router-dom
Version:
spa in astro or native/vanilla js
11 lines (10 loc) • 397 B
TypeScript
import { TMurypRoutes, TMurypRouteConfig } from '../types/global';
export declare function matchRouteLogic(segments: string[], routes: TMurypRoutes): {
configs: TMurypRouteConfig[];
params: Record<string, string>;
};
export declare function parseUrlLogic(fullUrl: string, hash: string, rootUrl?: string): {
segments: string[];
query: Record<string, string>;
anchor: string;
};