mobx-wouter
Version:
<img src="assets/logo.png" align="right" height="156" alt="logo" />
24 lines • 1.08 kB
TypeScript
type HistoryType = 'browser' | 'hash' | 'memory';
export declare const createMockHistory: (historyType: HistoryType) => {
spies: {
push: import("vitest").MockInstance<(to: import("mobx-location-history").To, state?: any) => void>;
replace: import("vitest").MockInstance<(to: import("mobx-location-history").To, state?: any) => void>;
};
clearMocks: () => void;
action: import("mobx-location-history").Action;
location: import("mobx-location-history").Location;
createHref(to: import("mobx-location-history").To): string;
push(to: import("mobx-location-history").To, state?: any): void;
replace(to: import("mobx-location-history").To, state?: any): void;
go(delta: number): void;
back(): void;
forward(): void;
listen(listener: import("mobx-location-history").Listener): () => void;
block(blocker: import("mobx-location-history").Blocker): () => void;
blockersCount: number;
isBlocked: boolean;
destroy: VoidFunction;
locationUrl: string;
};
export {};
//# sourceMappingURL=router.test.d.ts.map