Initial commit
This commit is contained in:
commit
78f8d225ee
21173 changed files with 2907774 additions and 0 deletions
48
node_modules/next/dist/server/app-render/postponed-state.d.ts
generated
vendored
Normal file
48
node_modules/next/dist/server/app-render/postponed-state.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
import type { FallbackRouteParams } from '../../server/request/fallback-params';
|
||||
import type { Params } from '../request/params';
|
||||
import { type PrerenderResumeDataCache, type RenderResumeDataCache } from '../resume-data-cache/resume-data-cache';
|
||||
export declare enum DynamicState {
|
||||
/**
|
||||
* The dynamic access occurred during the RSC render phase.
|
||||
*/
|
||||
DATA = 1,
|
||||
/**
|
||||
* The dynamic access occurred during the HTML shell render phase.
|
||||
*/
|
||||
HTML = 2
|
||||
}
|
||||
/**
|
||||
* The postponed state for dynamic data.
|
||||
*/
|
||||
export type DynamicDataPostponedState = {
|
||||
/**
|
||||
* The type of dynamic state.
|
||||
*/
|
||||
readonly type: DynamicState.DATA;
|
||||
/**
|
||||
* The immutable resume data cache.
|
||||
*/
|
||||
readonly renderResumeDataCache: RenderResumeDataCache;
|
||||
};
|
||||
/**
|
||||
* The postponed state for dynamic HTML.
|
||||
*/
|
||||
export type DynamicHTMLPostponedState = {
|
||||
/**
|
||||
* The type of dynamic state.
|
||||
*/
|
||||
readonly type: DynamicState.HTML;
|
||||
/**
|
||||
* The postponed data used by React.
|
||||
*/
|
||||
readonly data: object;
|
||||
/**
|
||||
* The immutable resume data cache.
|
||||
*/
|
||||
readonly renderResumeDataCache: RenderResumeDataCache;
|
||||
};
|
||||
export type PostponedState = DynamicDataPostponedState | DynamicHTMLPostponedState;
|
||||
export declare function getDynamicHTMLPostponedState(data: object, fallbackRouteParams: FallbackRouteParams | null, prerenderResumeDataCache: PrerenderResumeDataCache): Promise<string>;
|
||||
export declare function getDynamicDataPostponedState(prerenderResumeDataCache: PrerenderResumeDataCache): Promise<string>;
|
||||
export declare function parsePostponedState(state: string, params: Params | undefined): PostponedState;
|
||||
export declare function getPostponedFromState(state: PostponedState): any;
|
||||
Loading…
Add table
Add a link
Reference in a new issue