const makeBrowserHistory: (
base?: string,
hash?: boolean,
) => {
resource: (callback: any) => () => void,
path: () => string,
query: () => Record<string, string>,
back: () => void,
forward: () => void,
go: (n: number) => void,
push: (
path: string,
query?: QueryParams | string,
) => void,
replace: (
path: string,
query?: QueryParams | string,
) => void,
linkTo:
(
path: string,
query?: QueryParams | string,
) => { href: string, onClick: (e: any) => void },
}
packages / workbench / src / router / router.ts