@muryp/router-dom
Version:
spa in astro or native/vanilla js
12 lines (11 loc) • 312 B
TypeScript
import type { TMurypRoutes } from '../types/global';
type TReturn = {
router: TMurypRoutes | undefined;
params: {
[key: string]: string;
};
};
export default function findRoutes(url: string[], index: number, routes: TMurypRoutes, params?: {
[key: string]: string;
}): TReturn;
export {};