SimpleNodeSchemaBase Interface
Base interface for TreeNodeSchema and SimpleNodeSchema types. Once simple schema is stable this doesn't have a reason to be kept @system
, but it could be.
This API is reserved for internal system use and should not be imported directly. It may change at any time without notice.
For more information about our API support guarantees, see here.
Signature
/** @sealed */
export interface SimpleNodeSchemaBase<out TNodeKind extends NodeKind, out TCustomMetadata = unknown>
Type Parameters
Parameter | Constraint | Default | Description |
---|---|---|---|
TNodeKind | NodeKind | ||
TCustomMetadata | unknown |
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
kind | readonly |
TNodeKind | The NodeKind. |
metadata | readonly |
NodeSchemaMetadata<TCustomMetadata> | User-provided NodeSchemaMetadata for this schema. |
Property Details
kind
The NodeKind.
This API is reserved for internal system use and should not be imported directly. It may change at any time without notice.
For more information about our API support guarantees, see here.
Signature
readonly kind: TNodeKind;
Type: TNodeKind
Remarks
can be used to type-switch between implementations.
metadata
User-provided NodeSchemaMetadata for this schema.
This API is reserved for internal system use and should not be imported directly. It may change at any time without notice.
For more information about our API support guarantees, see here.
Signature
readonly metadata: NodeSchemaMetadata<TCustomMetadata>;
Type: NodeSchemaMetadata<TCustomMetadata>