typeData

  • typedef
documentjs.process.typeData

{Object}

 

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

Object

Properties

  1. type {String}

    The type name this dataType represents.

  2. template {Array<valueData>}Optional

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

    {PRIMARY_TYPE.<TYPE,TYPE>}
    
  3. options {Array<valueData>}Optional

    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 invidual valueDatas.

  4. context {valueData}Optional

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

    {function(this:TYPE)}
    
  5. constructs {valueData}Optional

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

    {function():TYPE}
    
  6. params {Array<valueData>}Optional

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

    {function(TYPE,TYPE)}