ntcore-ts-client
    Preparing search index...

    Class NetworkTablesTypeInfos

    Index

    Constructors

    Properties

    kBoolean: NetworkTablesTypeInfo = ...
    kBooleanArray: NetworkTablesTypeInfo = ...
    kDouble: NetworkTablesTypeInfo = ...
    kDoubleArray: NetworkTablesTypeInfo = ...
    kFloat: NetworkTablesTypeInfo = ...
    kFloatArray: NetworkTablesTypeInfo = ...
    kInteger: NetworkTablesTypeInfo = ...
    kIntegerArray: NetworkTablesTypeInfo = ...
    kMsgpack: NetworkTablesTypeInfo = ...
    kProtobuf: NetworkTablesTypeInfo = ...
    kString: NetworkTablesTypeInfo = ...
    kStringArray: NetworkTablesTypeInfo = ...
    kUint8Array: NetworkTablesTypeInfo = ...
    typeNumMap: Map<number, NetworkTablesTypeInfo> = ...

    Methods

    • Validates and parses a value based on the expected NetworkTables type information.

      Parameters

      • expectedTypeInfo: NetworkTablesTypeInfo

        The expected type information from NetworkTablesTypeInfo.

      • value:
            | string
            | number
            | boolean
            | string[]
            | Uint8Array<ArrayBufferLike>
            | boolean[]
            | number[]

        The value to validate and parse.

      Returns
          | string
          | number
          | boolean
          | string[]
          | Uint8Array<ArrayBufferLike>
          | boolean[]
          | number[]

      The parsed value, matching the expected type.

      Will throw an error if the value does not match the expected type or if parsing fails.