Skip to main content

@terascope/data-types / types/tuple-type

types/tuple-type

Classes

ClassDescription
defaultAn ordered, fixed set of values where each position (element) has its own type — the data-types analogue of a tuple. Declare the parent field as Tuple and give each element a dot-notation, zero-based index name (field.0, field.1, …), the same way GroupType object children are declared. At least one element field is required (the builder throws Tuple field types require at least one field otherwise).