svelte5-router
Version:
A declarative Svelte routing library with SSR support
21 lines • 599 B
TypeScript
import type { Snippet } from "svelte";
import type { RouteLocation } from "../Route/Route";
import { globalHistory } from "../../lib/history";
export type Viewtransition = {
fn?: any;
delay?: number;
duration?: number;
x?: number;
y?: number;
opacity?: number;
easing?: any;
css?: (t: number) => string;
};
export type RouterProps = {
basepath?: string;
url?: string;
viewtransition?: (direction?: string) => Viewtransition;
history?: typeof globalHistory;
children: Snippet<[string | null, RouteLocation]>;
};
//# sourceMappingURL=Router.d.ts.map