UNPKG

@wroud/navigation

Version:

A flexible, pattern-matching navigation system for JavaScript applications with built-in routing, browser integration, and navigation state management

11 lines (9 loc) 309 B
import type { IRouteState } from "./IRouteState.js"; import type { LinkedList } from "./sdk/LinkedList.js"; /** * Represents the internal state of navigation with history and current position */ export interface INavigationState<TState = IRouteState> { position: number; history: LinkedList<TState>; }