UNPKG

@krmao/react-basic

Version:
18 lines (17 loc) 607 B
import { Url } from "url"; export default class BasicNavigator { static pushWithLocationHref: (url: string) => string; static pushWithRouter: (url: Url | string, as?: Url | string, options?: { shallow?: boolean; locale?: string | false; scroll?: boolean; }) => Promise<boolean>; static push: (url: Url | string, as?: Url | string, options?: { shallow?: boolean; locale?: string | false; scroll?: boolean; }) => Promise<boolean>; static backWithHistory: () => void; static backWithRouter: () => void; static back: () => void; }