A node that represents a count strategy where the number of items is known and fixed. This enables nodes such as ArrayTypeNode
to represent arrays of a fixed length.
Attribute | Type | Description |
---|---|---|
kind |
"fixedCountNode" |
The node discriminator. |
value |
number |
The fixed count of items. |
This node has no children.
Helper function that creates a FixedCountNode
object from a number.
const node = fixedCountNode(42);
arrayTypeNode(publicKeyTypeNode(), fixedCountNode(3));