hatch-surf/node_modules/next/dist/shared/lib/segment-cache/vary-params-decoding.d.ts
Riley Zhang df378d33ef
Some checks failed
CI / go (push) Waiting to run
CI / docker (push) Waiting to run
CI / lint-go (push) Waiting to run
CI / lint-docs (push) Waiting to run
CI / check-paperclip (push) Waiting to run
Deploy static site / Deploy to GitHub Pages (push) Has been cancelled
Deploy static site / Deploy via Docker to hatch.surf (push) Has been cancelled
Merge GitHub main into Gitea repo (allow unrelated histories)
Resolved conflicts by taking GitHub versions for:
- .dockerignore, .gitignore, Dockerfile, README.md, docker-compose.yml

Kept deploy.sh updated to:
- Pull from GitHub (primary source)
- Push to Gitea (push-mirror)
- Build from site/ directory (GitHub structure)

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-06-25 05:20:46 +02:00

29 lines
1011 B
TypeScript

/**
* Vary Params Decoding
*
* This module is shared between server and client.
*/
export type VaryParams = Set<string>;
type FulfilledVaryParamsThenable = {
status: 'fulfilled';
value: VaryParams;
} & PromiseLike<VaryParams>;
type PendingVaryParamsThenable = {
status: 'pending' | 'resolved_model';
value: unknown;
} & PromiseLike<VaryParams>;
export type VaryParamsThenable = FulfilledVaryParamsThenable | PendingVaryParamsThenable;
/**
* Synchronously reads vary params from a thenable.
*
* By the time this is called (client-side or in collectSegmentData), the
* thenable should already be fulfilled because the Flight stream has been
* fully received. We check the status synchronously to avoid unnecessary
* microtasks.
*
* Returns null if the thenable is still pending (which shouldn't happen in
* normal operation - it indicates the server failed to track vary params).
*/
export declare function readVaryParams(thenable: VaryParamsThenable): VaryParams | null;
export {};