@westacks/vortex
Version:
Server-based routing for SPAs
34 lines (33 loc) • 850 B
TypeScript
import { VortexExtension, Page } from '../..';
import { clear } from './encryption';
declare module '../..' {
interface VortexConfig {
only?: string[];
except?: string[];
reset?: string[];
preserveHistory?: boolean;
preserveScroll?: boolean;
replaceHistory?: boolean;
}
interface Page {
component: string;
props: Record<string, unknown>;
url: string;
version: string | null;
clearHistory: boolean;
encryptHistory: boolean;
deferredProps?: Record<string, string[]>;
mergeProps?: string[];
deepMergeProps?: string[];
}
}
/**
* Vortex Inertia extension
*
* @see https://inertiajs.com
*/
declare const inertia: {
(initialPage: Page): VortexExtension;
clearHistory: typeof clear;
};
export default inertia;