nuxt
Version:
30 lines • 962 B
TypeScript
//#region src/app/composables/chunk.d.ts
interface ReloadNuxtAppOptions {
/**
* Number of milliseconds in which to ignore future reload requests
* @default {10000}
*/
ttl?: number;
/**
* Force a reload even if one has occurred within the previously specified TTL.
* @default {false}
*/
force?: boolean;
/**
* Whether to dump the current Nuxt state to sessionStorage (as `nuxt:reload:state`).
* @default {false}
*/
persistState?: boolean;
/**
* The path to reload. If this is different from the current window location it will
* trigger a navigation and add an entry in the browser history.
*
* Cross-origin paths and URLs with script-like protocols (e.g. `javascript:`, `data:`) are rejected.
* @default {window.location.pathname}
*/
path?: string;
}
/** @since 3.3.0 */
declare function reloadNuxtApp(options?: ReloadNuxtAppOptions): void;
//#endregion
export { ReloadNuxtAppOptions, reloadNuxtApp };