UNPKG

@ekwoka/alpine-history

Version:
10 lines 410 B
type StateUpdateCallback = (url: URL) => void; export declare const onURLChange: (callback: StateUpdateCallback) => number; export declare const untrack: (cb: () => void) => void; export declare const observeHistory: (injectHistory?: Pick<History, UpdateMethod>) => void; export declare enum UpdateMethod { replace = "replaceState", push = "pushState" } export {}; //# sourceMappingURL=history.d.ts.map