mwouter
Version:
A minimalistic routing for React and Preact, Memory Edition. Nothing extra, just HOOKS.
17 lines (12 loc) • 348 B
TypeScript
import { Path, LocationHook } from "./use-location";
interface StaticLocationHookOptions {
record?: boolean;
}
interface StaticLocationHook extends LocationHook {
history: Readonly<Path[]>;
}
declare function staticLocationHook(
path?: Path,
options?: StaticLocationHookOptions
): StaticLocationHook;
export default staticLocationHook;