main repo

This commit is contained in:
Basilosaurusrex
2025-11-24 18:09:40 +01:00
parent b636ee5e70
commit f027651f9b
34146 changed files with 4436636 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
/// <reference types="node" />
import type { AsyncLocalStorage } from 'async_hooks';
import type { IncrementalCache } from '../../server/lib/incremental-cache';
import type { DynamicServerError } from './hooks-server-context';
export interface StaticGenerationStore {
readonly isStaticGeneration: boolean;
readonly pagePath?: string;
readonly urlPathname: string;
readonly incrementalCache?: IncrementalCache;
readonly isOnDemandRevalidate?: boolean;
readonly isPrerendering?: boolean;
readonly isRevalidate?: boolean;
forceDynamic?: boolean;
fetchCache?: 'only-cache' | 'force-cache' | 'default-cache' | 'force-no-store' | 'default-no-store' | 'only-no-store';
revalidate?: false | number;
forceStatic?: boolean;
dynamicShouldError?: boolean;
pendingRevalidates?: Promise<any>[];
dynamicUsageDescription?: string;
dynamicUsageStack?: string;
dynamicUsageErr?: DynamicServerError;
nextFetchId?: number;
pathWasRevalidated?: boolean;
tags?: string[];
revalidatedTags?: string[];
fetchMetrics?: Array<{
url: string;
idx: number;
end: number;
start: number;
method: string;
status: number;
cacheReason: string;
cacheStatus: 'hit' | 'miss' | 'skip';
}>;
isDraftMode?: boolean;
}
export type StaticGenerationAsyncStorage = AsyncLocalStorage<StaticGenerationStore>;
export declare const staticGenerationAsyncStorage: StaticGenerationAsyncStorage;