Skip to main content

NodeSchemaMetadata Interface

Metadata associated with a Node Schema.

Signature

/** @sealed */
export interface NodeSchemaMetadata<out TCustomMetadata = unknown>

Type Parameters

Parameter Default Description
TCustomMetadata unknown

Remarks

Specified via metadata.

Properties

Property Modifiers Type Description
custom optional, readonly TCustomMetadata | undefined User-defined metadata.
description optional, readonly string | undefined The description of the Node Schema.

Property Details

custom

User-defined metadata.

Signature

readonly custom?: TCustomMetadata | undefined;

Type: TCustomMetadata | undefined

description

The description of the Node Schema.

Signature

readonly description?: string | undefined;

Type: string | undefined

Remarks

If provided, will be used by the system in scenarios where a description of the kind of node is useful. E.g., when converting a Node Schema to JSON Schema, this description will be used as the description property.