Definition
A Definition is an object used to represent generated code as an Identifier and Stringable value
Constructor
new Definition({ context, description, identifier, value })
Constructor parameters
| Property | Type | Description |
|---|---|---|
| context | GenerateContext | GenerateContext |
| description | string | undefined | Optional description. If Definition is generated from external schema with a description, it will be added here. |
| identifier | Identifier | Identifier representing a variable or type declaration |
| value | Stringable | Stringable value |
Return value
A new Definition object
Properties
| Property | Type | Description |
|---|---|---|
| context | GenerateContext | GenerateContext |
| description | string | undefined | Optional description. If Definition is generated from external schema with a description, it will be added here. |
| identifier | Identifier | Identifier representing a variable or type declaration |
| value | Stringable | Stringable value |