Type Alias AdminMessage<Payload>

AdminMessage: {
    body: {
        data: Payload;
        type: typeof ADMIN_MESSAGE_TYPES[keyof typeof ADMIN_MESSAGE_TYPES];
    };
    id: string;
    type: typeof ADMIN_MESSAGE;
}

Represents an admin message with a specific payload.

Type Parameters

  • Payload = any

    The type of the message data.

Type declaration