@waylis/core / ExpectedReply
Interface: ExpectedReply<T>
Defined in: src/message/types.ts:143
Defines the expected shape and constraints of a reply.
Type Parameters
T
T
extends UserMessageBodyType
= UserMessageBodyType
Properties
bodyLimits?
ts
optional bodyLimits: T extends keyof MessageBodyLimitsMap ? MessageBodyLimitsMap[T<T>] : never;
Defined in: src/message/types.ts:147
Optional limits for that body type.
bodyType
ts
bodyType: T;
Defined in: src/message/types.ts:145
Required body type for the reply.