Skip to main content

ErasedNode TypeAlias

The type of an erased schema's node.

This API is provided as an alpha preview and may change without notice.

To use, import via fluid-framework/alpha.

For more information about our API support guarantees, see here.

Signature​

export type ErasedNode<TExtra, Identifier extends string> = TExtra & TreeNode & WithType<Identifier>;

Type Parameters​

ParameterConstraintDescription
TExtra
Identifierstring

Remarks​

Provides a way to concisely and explicitly type the node type for a schema returned from eraseSchemaDetails().

Example​

export const Square: SquareSchema & ErasedSchema<Square> = eraseSchemaDetails<Square, SquareSchema>()(SquareInternal);
export type Square = ErasedNode<SquareNode, "com.example.Demo">;