[]previous and next page

ServerFnContext

What a server function middleware receives: the request event and the (validated) input.

What a server function middleware receives: the request event and the (validated) input.

Import#

ts
import type { ServerFnContext } from "@shadow-js/dusk/server";

Signature#

ts
interface ServerFnContext {
  readonly event: RequestEvent;
  /** The validated input. */
  readonly input: unknown;
}

Members#

Name Type Description
event readonly event: RequestEvent
input readonly input: unknown The validated input.