MethodDescriptor
Defined in: packages/codecs/src/schema-types.ts:47
Type-level descriptor for a single registered method.
Stores all 4 types needed for full type-safety on both sides:
Parent (Module) Child (Client)────────────── ──────────────send(data: reqIn) ──serialize──► handle(data: reqOut) ▲ │ │ ▼ returns resOut ◄──deserialize── ctx.respond(resIn)For symmetric codecs: reqIn === reqOut, resIn === resOut For asymmetric codecs: types may differ based on codec’s serialize/deserialize
Properties
Section titled “Properties”
readonlyreqIn:unknown
Defined in: packages/codecs/src/schema-types.ts:49
Request type from PARENT perspective (serialize input)
reqOut
Section titled “reqOut”
readonlyreqOut:unknown
Defined in: packages/codecs/src/schema-types.ts:51
Request type from CHILD perspective (deserialize output)
readonlyresIn:unknown
Defined in: packages/codecs/src/schema-types.ts:53
Response type from CHILD perspective (serialize input)
resOut
Section titled “resOut”
readonlyresOut:unknown
Defined in: packages/codecs/src/schema-types.ts:55
Response type from PARENT perspective (deserialize output)
responseType
Section titled “responseType”
readonlyresponseType:string
Defined in: packages/codecs/src/schema-types.ts:57
Response mode: “result” | “stream” | “ack” | “none”