router changes
This commit is contained in:
10
src/router/router.ts
Normal file
10
src/router/router.ts
Normal 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
|
||||
};
|
||||
Reference in New Issue
Block a user