Skip to content

AddMethodSymmetric

AddMethodSymmetric<S, Name, C, RT> = object

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

Add a method with a single symmetric codec (shorthand).

Used internally by Module.method() when codec: is provided. Uses the same codec for both request and response directions.

S extends Schema

Name extends string

C extends Schema

RT extends ResponseType

events: S["events"]

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


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

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