svelte5-spa-router
Version:
A simple, flexible, and lightweight SPA router specifically designed for Svelte 5 with runes support (dev/non-stable, not production ready)
14 lines (13 loc) • 329 B
TypeScript
export default Router;
type Router = {
$on?(type: string, callback: (e: any) => void): () => void;
$set?(props: Partial<$$ComponentProps>): void;
};
declare const Router: import("svelte").Component<{
routes?: any[];
fallback?: any;
}, {}, "">;
type $$ComponentProps = {
routes?: any[];
fallback?: any;
};