Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 838 Bytes

StructFieldValueNode.md

File metadata and controls

28 lines (18 loc) · 838 Bytes

StructFieldValueNode

A node that represents a field value in a struct — e.g. age: 42.

Attributes

Data

Attribute Type Description
kind "structFieldValueNode" The node discriminator.
name CamelCaseString The name of the field.

Children

Attribute Type Description
value ValueNode The value of the field.

Functions

structFieldValueNode(name, value)

Helper function that creates a StructFieldValueNode object from a field name and a value node.

const node = structFieldValueNode('age', numberValueNode(42));