Skip to content

basalt / sdk/src / EndpointInput

Type Alias: EndpointInput<E> ​

> EndpointInput<E> = E extends Endpoint<infer B, infer Q, infer P, ZodType | undefined> ? FromInput<"body", B> & FromOutput<"query", Q> & FromOutput<"params", P> : never

Defined in: sdk/src/endpoint.ts:61

The call input for an endpoint. body uses the schema's INPUT type (so defaults/optionals can be omitted); query/params use the OUTPUT type (the coerced, developer-friendly value the caller provides).

Type Parameters ​

E ​

E

Released under the MIT License.