valueData

  • typedef
documentjs.process.valueData

{Object}

 

Data related to a value in a type expression.

Object

Properties

  1. types {Array<typeData>}

    The allowed types of the value. Multiple types can be specified like:

    {Boolean|Array}
    
  2. name {String}Optional

    Set if the value is given a name. This property is set by record type expressions like:

    {{PROPERTY_NAME: TYPE, PROPERTY_NAME: TYPE}}
    

    Or by name expressions like:

    method(arg1, arg2)
    
  3. description {String}Optional

    A description associated with the value. This is commonly provided by the @option or @param tag.

  4. optional {Boolean}Optional

    If the type does not need to exist. This can be specified in the type like:

    {String=}
    

    Or more commonly in a name expressions like:

    [NAME]
    
  5. nullable {Boolean}Optional

    If the type can be null. It is specified with ? like:

    {?TYPE}
    
  6. nonnull {Boolean}Optional

    If the type can not be null. It is specified with ! like:

    {!TYPE}
    
  7. variable {Boolean}Optional

    If multiple values of the type can be provided. This can be specified in the type with ... like:

    {function(...Number)}
    

    or:

    {function(Number...)}
    
  8. defaultValue {typeData}Optional

    The default value of the object if it is not provided. This is commonly specified by a name expression like:

    [foo="bar"]