Skip to content

Property

Anton edited this page Aug 9, 2019 · 23 revisions

Property: A property of a type.

Name Type & Description Initial
name string -
The name of the property.
description ?string null
The description of the property.
type string *
The type of the property.
hasDefault boolean false
Whether the property has the default value.
default ?(string | boolean | number) null
The default value of the property.
optional boolean false
If the property is optional.
args Array<!Arg> null
Function properties can have arguments specified inside of their tags.
isConstructor boolean false
If this property of a type is its constructor.
isParsedFunction boolean false
Whether the property is a function which was parsed.
parsed _typedefsParser.Type null
Whether the property is a function which was parsed.
toTypeScriptFunction (getLinks: function(!_typedefsParser.Type): string) => string
If the function was a parsed function, returns TypeScript type.
  • getLinks* function(!_typedefsParser.Type): string: Returns the string with links to other types.
  • Clone this wiki locally