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
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>
25 lines
1.2 KiB
TypeScript
25 lines
1.2 KiB
TypeScript
import type { ActionManifest } from '../../build/webpack/plugins/flight-client-entry-plugin';
|
|
import type { ClientReferenceManifest } from '../../build/webpack/plugins/flight-manifest-plugin';
|
|
import type { DeepReadonly } from '../../shared/lib/deep-readonly';
|
|
export interface ServerModuleMap {
|
|
readonly [name: string]: {
|
|
readonly id: string | number;
|
|
readonly name: string;
|
|
readonly chunks: Readonly<Array<string>>;
|
|
readonly async?: boolean;
|
|
};
|
|
}
|
|
/**
|
|
* Checks if the requested action has a worker for the current page.
|
|
* If not, it returns the first worker that has a handler for the action.
|
|
*/
|
|
export declare function selectWorkerForForwarding(actionId: string, pageName: string): string | undefined;
|
|
export declare function setManifestsSingleton({ page, clientReferenceManifest, serverActionsManifest: rawServerActionsManifest, }: {
|
|
page: string;
|
|
clientReferenceManifest: DeepReadonly<ClientReferenceManifest>;
|
|
serverActionsManifest: DeepReadonly<ActionManifest>;
|
|
}): void;
|
|
export declare function getClientReferenceManifest(): DeepReadonly<ClientReferenceManifest>;
|
|
export declare function getServerActionsManifest(): DeepReadonly<ActionManifest>;
|
|
export declare function getServerModuleMap(): ServerModuleMap;
|