@nats-io/nats-core
    Preparing search index...

    Type Alias MsgCallback<T>

    MsgCallback: (err: Error | null, msg: T) => void | Promise<never>

    Type Parameters

    • T

    Type declaration

      • (err: Error | null, msg: T): void | Promise<never>
      • Parameters

        • err: Error | null
        • msg: T

        Returns void | Promise<never>