mysa-js-sdk
    Preparing search index...

    Generic typed message payload interface for MsgType-based messages.

    Extends the base MsgType payload with a strongly-typed message identifier, ensuring type safety for specific message types that use the MsgType field.

    interface MsgTypePayload<T extends number> {
        Device: string;
        MsgType: T;
        Timestamp: number;
    }

    Type Parameters

    • T extends number

      The specific message type number

    Hierarchy (View Summary)

    Index

    Properties

    Device: string

    Device identifier string

    MsgType: T

    The strongly-typed message type identifier

    Timestamp: number

    Unix timestamp when the message was created