UNPKG

sly-svelte-location-router

Version:

A simple svelte router based on location API

11 lines (10 loc) 468 B
/** Main Router component */ import Router from "./Router.svelte"; /** Core router functions */ import { initRouter, navigate } from "./router"; /** Stores */ import { currentRoute } from "./store"; /** Type definitions */ export type * from "./types"; /** Exports */ export { Router /** Main Router component */, initRouter /** Manual router initialization */, navigate /** Programmatic navigation */, currentRoute /** Current route store with path and params */, };