@svelte-navigator/history
Version:
History module for svelte-navigator
6 lines (5 loc) • 585 B
TypeScript
import type { KeyedState, StateContainer, NavigatorLocation, Subscribable, HistoryContainer } from "./types";
export declare const getBrowserStateAndKey: <State = unknown>(history: History) => KeyedState<State>;
export declare const createState: <State = unknown>(state?: State | null | undefined) => StateContainer<State>;
export declare function createSubscribable<StoreValue = undefined>(getState?: () => StoreValue): Subscribable<StoreValue>;
export declare function createHistoryContainer<State = unknown>(initialLocation: NavigatorLocation<State>): HistoryContainer<State>;