CodeSquared docs

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
PropertyTypeDescription
contextGenerateContextGenerateContext
descriptionstring | undefinedOptional description. If Definition is generated from external schema with a description, it will be added here.
identifierIdentifierIdentifier representing a variable or type declaration
valueStringableStringable value

Return value

A new Definition object

Properties

PropertyTypeDescription
contextGenerateContextGenerateContext
descriptionstring | undefinedOptional description. If Definition is generated from external schema with a description, it will be added here.
identifierIdentifierIdentifier representing a variable or type declaration
valueStringableStringable value