@wordpress/interactivity-router
Version:
Package that exposes state and actions from the `core/router` store, part of the Interactivity API.
24 lines • 580 B
TypeScript
interface NavigateOptions {
force?: boolean;
html?: string;
replace?: boolean;
timeout?: number;
loadingAnimation?: boolean;
screenReaderAnnouncement?: boolean;
}
interface PrefetchOptions {
force?: boolean;
html?: string;
}
export declare const state: {
url: string;
navigation: {
hasStarted: boolean;
hasFinished: boolean;
};
}, actions: {
navigate: (href: string, options?: NavigateOptions) => void;
prefetch: (url: string, options?: PrefetchOptions) => void;
};
export {};
//# sourceMappingURL=index.d.ts.map