Skip to main content

Type Definitions

Overview​

Discriminated unions since 7.7.0

Structure is ItemStructure | ContainerStructure, discriminated by structureType: a CONTAINER names its structures and holds no matchUps or positionAssignments of its own; an ITEM holds no structures, and its structureType stays optional because stored records mostly omit it. DrawLink is RoundDrawLink | PositionDrawLink, discriminated by linkType: WINNER and LOSER links name a source roundNumber, a POSITION link names source finishingPositions and no round. This is the soft form: reading structure.matchUps on an un-narrowed Structure still compiles, building a malformed structure or link does not. StructureBase, ItemStructure, ContainerStructure, DrawLinkBase, RoundDrawLink and PositionDrawLink are exported. Types only; no runtime change.

Common​

Elements that may occur on any CODES object.

Object definitions:


Generic​

Elements that occur on several CODES objects.


tournament​


participant​


event​


drawDefinition​


matchUp​

A matchUp is an object which contains the details of an encounter between two tournament participants, which can be INDIVIDUALS, PAIRS, or TEAMS. The term matchUp was chosen to differentiate from other interpretations, particularly in the context of software development, of the more traditional term "match". Other descriptive terms such as "face off" and "throw down" were never seriously considered.


tieFormat​

See tieFormats Explanation.


venue​