A type is a description of a data structure.

Implements

Constructors

Properties

_hologram?: HologramType
_intersection?: Type[]
_list?: Type
_map?: TypeMapEntry[]
_optional?: Type
_primitive?: number
_reference?: string
_special?: number
_tuple?: TypeTupleEntry[]
_union?: Type[]
_version?: string

Accessors

  • get hologram(): undefined | HologramType
  • The hologram type.

    It is a type that represents a hologram.

    Returns undefined | HologramType

  • get intersection(): undefined | Type[]
  • The intersection type.

    It is a list of types that represents an intersection.

    Returns undefined | Type[]

  • get list(): undefined | Type
  • The list type.

    It is a type that represents a list.

    Returns undefined | Type

  • get map(): undefined | TypeMapEntry[]
  • The map type.

    It is a list of map entries.

    Returns undefined | TypeMapEntry[]

  • get optional(): undefined | Type
  • The optional type.

    It is a type that represents an optional value.

    Returns undefined | Type

  • get primitive(): undefined | number
  • The primitive type.

    It is a number that represents a primitive type.

    Returns undefined | number

  • get reference(): undefined | string
  • The reference to the type.

    This is a reference to a type within a domain. It is a dot-separated path to the type, starting from the domain.

    Example: myDomain.MyType@1.0.0

    Returns undefined | string

  • get special(): undefined | number
  • The special type.

    It is a number that represents a special type.

    Returns undefined | number

  • get tuple(): undefined | TypeTupleEntry[]
  • The tuple type.

    It is a list of tuple entries.

    Returns undefined | TypeTupleEntry[]

  • get union(): undefined | Type[]
  • The union type.

    It is a list of types that represents a union.

    Returns undefined | Type[]

  • get version(): undefined | string
  • The version of the type.

    It is a version string that is used to identify the version of the type.

    The format of the version string is a dot-separated pat, followed by an at sign and three numbers separated by dots.

    Example: myDomain.MyType@1.0.0

    Returns undefined | string

Methods

Generated using TypeDoc