20 lines
833 B
TypeScript
20 lines
833 B
TypeScript
import type { AsyncStorageWrapper } from './async-storage-wrapper';
|
|
import type { StaticGenerationStore } from '../../client/components/static-generation-async-storage.external';
|
|
import type { IncrementalCache } from '../lib/incremental-cache';
|
|
export type StaticGenerationContext = {
|
|
urlPathname: string;
|
|
renderOpts: {
|
|
originalPathname?: string;
|
|
incrementalCache?: IncrementalCache;
|
|
supportsDynamicHTML: boolean;
|
|
isRevalidate?: boolean;
|
|
isOnDemandRevalidate?: boolean;
|
|
isBot?: boolean;
|
|
nextExport?: boolean;
|
|
fetchCache?: StaticGenerationStore['fetchCache'];
|
|
isDraftMode?: boolean;
|
|
isServerAction?: boolean;
|
|
};
|
|
};
|
|
export declare const StaticGenerationAsyncStorageWrapper: AsyncStorageWrapper<StaticGenerationStore, StaticGenerationContext>;
|