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.
Type Parameters
Section titled “Type Parameters”S extends Schema
Name extends string
C extends Schema
RT extends ResponseType
Properties
Section titled “Properties”events
Section titled “events”events:
S["events"]
Defined in: packages/core/src/schema-types.ts:66
methods
Section titled “methods”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