highs-js API reference
    Preparing search index...

    Type Alias CallbackEventFor<T>

    CallbackEventFor: T extends 1
    | 2
    | 6
        ? InterruptCallbackEvent & { type: T }
        : T extends 9
            ? UserSolutionCallbackEvent
            : PassiveCallbackEvent & { type: T }

    Event capabilities for one CallbackType. Interrupt channels expose only interrupt(), type 9 exposes solution submission, and passive channels expose no controls. This conditional type is what makes handlers in HighsCallbackMap channel-safe.

    Type Parameters