UNPKG

rwsdk

Version:

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

19 lines (18 loc) 544 B
import { RwContext } from "../lib/types.js"; export interface DefaultAppContext { } export interface RequestInfo<Params = any, AppContext = DefaultAppContext> { request: Request; path: string; params: Params; ctx: AppContext; rw: RwContext; cf: ExecutionContext; response: ResponseInit & { headers: Headers; }; isAction: boolean; } export type PartialRequestInfo<Params = any, AppContext = DefaultAppContext> = Omit<Partial<RequestInfo<Params, AppContext>>, "rw"> & { rw?: Partial<RwContext>; };