Skip to content

AddMethod

AddMethod<S, Name, CReq, CRes, RT> = object

Defined in: packages/core/src/schema-types.ts:22

Add a method to schema with dual codecs (full 4-type control).

Used internally by Module.method() when requestCodec + responseCodec are provided.

S extends Schema

Name extends string

CReq extends Schema

CRes extends Schema

RT extends ResponseType

events: S["events"]

Defined in: packages/core/src/schema-types.ts:40


methods: Omit<S["methods"], Name> & Record<Name, { reqIn: Schema<CReq>; reqOut: Schema<CReq>; resIn: Schema<CRes>; resOut: Schema<CRes>; responseType: RT; }>

Defined in: packages/core/src/schema-types.ts:29