Stone.js API
    Preparing search index...

    Interface ICommandHandler<W, X>

    Represents the CommandHandler function for the Node Cli Adapter.

    interface ICommandHandler<
        W extends IIncomingEvent = IIncomingEvent,
        X = unknown,
    > {
        handle: FunctionalEventHandler<W, X>;
        match?: (event: W) => boolean;
    }

    Type Parameters

    Index
    match?: (event: W) => boolean