UNPKG

@j2inn/app

Version:

J2 Innovations core application framework

22 lines (21 loc) 518 B
/** * APIs to interface with a browser's history. */ export interface CustomHistory { /** * The current state. */ state: Record<string, unknown>; /** * Pushes the new state into the browser's history. * * @param state The new state. */ pushState(state: Record<string, unknown>): void; /** * Replaces the existing browser's history state with a new one. * * @param state The new state. */ replaceState(state: Record<string, unknown>): void; }