Skip to main content
Module

x/cav/endpoints.ts>CtxOutput

A server framework for Deno
Go to Latest
type alias CtxOutput
import { type CtxOutput } from "https://deno.land/x/cav@0.0.24/endpoints.ts";

Type utility for extracting the output of a "ctx" function on an EndpointSchema or SocketSchema.

definition: ("ctx" extends keyof Schema ? (Schema extends { ctx: (x: any) => infer C; } ? Awaited<C> : Schema extends { ctx?: undefined | null; } ? undefined : never) : Schema extends Record<string, unknown> ? undefined : unknown)