UNPKG

rwsdk

Version:

Build fast, server-driven webapps on Cloudflare with SSR, RSC, and realtime

10 lines (9 loc) 477 B
type GetServerModuleExport = (actionId: string) => Promise<unknown>; type DecodeReply = (data: string | FormData, moduleMap: null) => Promise<unknown>; export interface RscActionHandlerDeps { getServerModuleExport: GetServerModuleExport; decodeReply: DecodeReply; allowedOrigins?: readonly string[]; } export declare function rscActionHandler(req: Request, { getServerModuleExport, decodeReply, allowedOrigins }: RscActionHandlerDeps): Promise<unknown>; export {};