UNPKG

@wordpress/interactivity-router

Version:

Package that exposes state and actions from the `core/router` store, part of the Interactivity API.

23 lines 601 B
export interface NavigateOptions { force?: boolean; html?: string; replace?: boolean; timeout?: number; loadingAnimation?: boolean; screenReaderAnnouncement?: boolean; } export interface PrefetchOptions { force?: boolean; html?: string; } export declare const state: { url: string; navigation: { hasStarted: boolean; hasFinished: boolean; }; }, actions: { navigate: (href: string, options?: NavigateOptions) => Promise<void>; prefetch: (url: string, options?: PrefetchOptions) => Promise<void>; }; //# sourceMappingURL=index.d.ts.map