vapor-chamber API reference - v1.3.0
    Preparing search index...

    Type Alias DeadLetterMode

    DeadLetterMode: "error" | "throw" | "ignore" | ((cmd: Command) => CommandResult)

    Dead letter mode — what to do when a command has no registered handler.

    • 'error' (default): returns { ok: false, error }
    • 'throw': throws the error
    • 'ignore': returns { ok: true, value: undefined }
    • function: called with the command, return value used as result