UNPKG

react-router-navigation-confirm

Version:

A collection of components to display a custom confirmation dialog on navigation. More flexible solution to prevent than default react-router 'Prompt'

10 lines (9 loc) 308 B
import { Action, Location } from "history"; declare class HistoryService { private history; private prev; add(key: string | undefined): void; isForward(current: string | undefined): boolean; getHistoryFunction: (location: Location, action: Action) => string; } export { HistoryService };