JsonValue<T>: T extends CompatibleType
    ? T
    : T extends undefined
        ? null
        : T extends HexStringType
            ? string
            : T extends (infer U)[]
                ? JsonArray<U>
                : JsonMap<T>

Type Parameters

  • T

Example: The corresponding Json value type of BuildingPacket

JsonValue<BuildingPacket>

Generated using TypeDoc