feat: init
This commit is contained in:
31
node_modules/nuxt/dist/app/composables/payload.d.ts
generated
vendored
Normal file
31
node_modules/nuxt/dist/app/composables/payload.d.ts
generated
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
import type { NuxtPayload } from '../nuxt.js';
|
||||
interface LoadPayloadOptions {
|
||||
fresh?: boolean;
|
||||
hash?: string;
|
||||
}
|
||||
/** @since 3.0.0 */
|
||||
export declare function loadPayload(url: string, opts?: LoadPayloadOptions): Promise<Record<string, any> | null>;
|
||||
/** @since 3.0.0 */
|
||||
export declare function preloadPayload(url: string, opts?: LoadPayloadOptions): Promise<void>;
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
export declare function shouldLoadPayload(url?: string): Promise<boolean>;
|
||||
/** @since 3.0.0 */
|
||||
export declare function isPrerendered(url?: string): Promise<boolean>;
|
||||
/** @since 3.4.0 */
|
||||
export declare function getNuxtClientPayload(): Promise<Partial<NuxtPayload> | null>;
|
||||
export declare function parsePayload(payload: string): Promise<any>;
|
||||
/**
|
||||
* This is an experimental function for configuring passing rich data from server -> client.
|
||||
* @since 3.4.0
|
||||
*/
|
||||
export declare function definePayloadReducer(name: string, reduce: (data: any) => any): void;
|
||||
/**
|
||||
* This is an experimental function for configuring passing rich data from server -> client.
|
||||
*
|
||||
* This function _must_ be called in a Nuxt plugin that is `unshift`ed to the beginning of the Nuxt plugins array.
|
||||
* @since 3.4.0
|
||||
*/
|
||||
export declare function definePayloadReviver(name: string, revive: (data: any) => any | undefined): void;
|
||||
export {};
|
||||
Reference in New Issue
Block a user