Skip to content

createExampleValue

createExampleValue(node, key): JsonValue

Defined in: metadata-projection.ts:213

Create a sample JSON value for one parsed attribute node.

AttributeNode

Parsed attribute node to sample from.

string

Attribute key used when deriving fallback example strings.

JsonValue

A JSON-compatible example value for docs, previews, or generated artifacts.