typeData typedef

Data related to a specific type value. These objects are created by type expressions.

Object

Options

  • type {String}:

    The type name this dataType represents.

  • template {Array<valueData>}:

    An array of valueData representing each specified type argument within <>. They are specified like:

    {PRIMARY_TYPE.<TYPE,TYPE>}
    
  • options {Array<valueData>}:

    An array of valueData representing each property name and value type in a record type. They are specified like:

    {{PROPERTY_NAME: TYPE, PROPERTY_NAME: TYPE}}
    

    The PROPERTY_NAME value sets the name property on the individual valueDatas.

  • context {valueData}:

    Represents the valueData a function expression can have as this. It is specified like:

    {function(this:TYPE)}
    
  • constructs {valueData}:

    Represents the return value of a function expression. It is specified like:

    {function():TYPE}
    
  • params {Array<valueData>}:

    Represents the arguments a function can be called with. They are specified like:

    {function(TYPE,TYPE)}