router changes

This commit is contained in:
2026-03-03 11:38:54 -06:00
parent 0713ad7521
commit bf1f26d851
6 changed files with 104 additions and 8 deletions

10
src/router/router.ts Normal file
View File

@@ -0,0 +1,10 @@
export type Router = {
replacePage: (path: string) => void;
pushPage: (path: string) => void;
current: HistoryState
}
export type Path = `/${string}`;
export type HistoryState = {
currentPage: Path
};