DIR : /home/kozerus/public_html/cropex/node/node_modules/wouter/types/memory-location.d.ts

/home/kozerus/public_html/cropex/node/node_modules/wouter/types

import {
  BaseLocationHook,
  BaseSearchHook,
  Path,
  SearchString,
} from "./location-hook.js";

type Navigate<S = any> = (
  to: Path,
  options?: { replace?: boolean; state?: S; transition?: boolean }
) => void;

type HookReturnValue<S = unknown> = {
  hook: BaseLocationHook;
  searchHook: BaseSearchHook;
  navigate: Navigate<S>;
  readonly state: S | null;
};
type StubHistory = { history: Path[]; reset: () => void };

export function memoryLocation<S = unknown>(options?: {
  path?: Path;
  searchPath?: SearchString;
  state?: S;
  static?: boolean;
  record?: false;
}): HookReturnValue<S>;
export function memoryLocation<S = unknown>(options?: {
  path?: Path;
  searchPath?: SearchString;
  state?: S;
  static?: boolean;
  record: true;
}): HookReturnValue<S> & StubHistory;
//


koh5_pano



Your browser does not support the HTML5 canvas element.


Drag mouse to navigate.

Navigation





17.Aug.2010, Martin Wengenmayer