Skip to main content

CustomMetadataTree Interface

A tree representing the nesting structure of transaction metadata.

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.

Sealed

This type is "sealed," meaning that code outside of the library defining it should not implement or extend it. Future versions of this type may add members or make typing of readonly members more specific.

Signature​

/** @sealed */
export interface CustomMetadataTree

Remarks​

Each transaction contributes a node whose metadata is its metadata (or undefined if none was provided). When transactions are nested, inner transaction nodes become children of outer ones.

Properties​

PropertyAlertsModifiersTypeDescription
childrenAlphareadonlyreadonly CustomMetadataTree[]The metadata trees of any nested transactions within this one.
metadataAlphareadonlyJsonCompatibleReadOnlyObject | undefinedThe metadata supplied by this transaction, or undefined if it supplied none.

Property Details​

children​

The metadata trees of any nested transactions within this one.

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

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

Signature​

readonly children: readonly CustomMetadataTree[];

Type: readonly CustomMetadataTree[]

metadata​

The metadata supplied by this transaction, or undefined if it supplied none.

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

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

Signature​

readonly metadata: JsonCompatibleReadOnlyObject | undefined;

Type: JsonCompatibleReadOnlyObject | undefined