type RouterAPI = {
route: RouterState,
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,
) => RouterLink,
}
packages / workbench / src / router / types.ts