UNPKG

1.11 kBTypeScriptView Raw
1export declare const getConfirmation: (win: Window, message: string, callback: (confirmed: boolean) => {}) => {};
2export declare const isModifiedEvent: (ev: MouseEvent) => boolean;
3/**
4 * Returns true if the HTML5 history API is supported. Taken from Modernizr.
5 *
6 * https://github.com/Modernizr/Modernizr/blob/master/LICENSE
7 * https://github.com/Modernizr/Modernizr/blob/master/feature-detects/history.js
8 * changed to avoid false negatives for Windows Phones: https://github.com/reactjs/react-router/issues/586
9 */
10export declare const supportsHistory: (win: Window) => boolean;
11/**
12 * Returns true if browser fires popstate on hash change.
13 * IE10 and IE11 do not.
14 */
15export declare const supportsPopStateOnHashChange: (nav: Navigator) => boolean;
16/**
17 * Returns false if using go(n) with hash history causes a full page reload.
18 */
19export declare const supportsGoWithoutReloadUsingHash: (nav: Navigator) => boolean;
20export declare const isExtraneousPopstateEvent: (nav: Navigator, event: any) => boolean;
21export declare const storageAvailable: (win: any, type: "localStorage" | "sessionStorage") => boolean;