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

    Type Alias CommandMeta

    Automatic metadata stamped on every command.

    type CommandMeta = {
        ts: number;
        id: string;
        causationId?: string;
        correlationId?: string;
    }
    Index

    Properties

    ts: number

    Monotonic timestamp (Date.now()) at dispatch time.

    id: string

    Unique command ID (crypto.randomUUID or fallback).

    causationId?: string

    ID of the command that caused this one (set manually via payload.__causationId).

    correlationId?: string

    Correlation ID for tracing a chain of commands (propagates from parent).