Delta-Pack - v0.2.9
    Preparing search index...

    Function ArrayType

    • Create an array type containing elements of the specified type.

      Arrays are encoded with a length prefix followed by each element. In delta encoding, only changed elements are transmitted.

      Type Parameters

      • const V extends ValueType

        The element type

      Parameters

      • value: V

        The type of elements in the array

      Returns UnifiedType<{ type: "array"; value: V }>

      const Team = ObjectType("Team", {
      members: ArrayType(StringType()),
      scores: ArrayType(IntType({ min: 0 })),
      positions: ArrayType(ReferenceType(Position)),
      });