TAKPacket-SDK — TypeScript - v0.7.0
    Preparing search index...

    Function typeToString

    • Map a CotType enum value back to its canonical CoT type string.

      Parameters

      • id: number

        A numeric CotType enum value.

      Returns string | undefined

      The CoT type string, or undefined when id has no known mapping (including COTTYPE_OTHER). The builder falls back to the packet's cotTypeStr in that case.