CommandHandler
CommandHandler<
TSchema> = (content,context) =>Promise<void> |void
Defined in: packages/hoppity/src/handlers/types.ts:69
Handler for domain commands. May be sync or async — auto-acked on success.
Type Parameters
Section titled “Type Parameters”TSchema
Section titled “TSchema”TSchema extends ZodTypeAny
The Zod schema from the CommandContract
Parameters
Section titled “Parameters”content
Section titled “content”z.infer<TSchema>
context
Section titled “context”Returns
Section titled “Returns”Promise<void> | void