export interface Location { pathname: Pathname; search: Search; state: S; hash: Hash; key?: LocationKey | undefined; } export interface RouterLocationState { nextPathname?: string; nextSearch?: string; background?: Location; routeWithBackground?: string; update?: { dataTable?: boolean; }; scrollTop?: boolean; from?: Location; } export type Pathname = string; export type Search = string; export type Hash = string; export type LocationState = unknown; export type LocationKey = string;