Type alias DataMessage<Data>

DataMessage<Data>: {
    data: Data;
    type: string | number | symbol;
} | {
    data?: Data;
    type: string | number | symbol;
}

A message type should usually be denoted by a union from the consumer of this library.

Type Parameters

  • Data = any

Generated using TypeDoc