Skip to main content

TreeDataStoreOptions Interface

Options for defineTreeDataStore(options).

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.

Input

This type is "input," meaning that code outside of the library defining it should not read from it. Future versions of this type may add optional members or make typing of members more general.

Signature

export interface TreeDataStoreOptions<TSchema extends ImplicitFieldSchema> extends Pick<DataStoreOptions<never, never>, "type">

Extends: Pick<DataStoreOptions<never, never>, "type">

Type Parameters

ParameterConstraintDescription
TSchemaImplicitFieldSchema

Properties

PropertyAlertsModifiersTypeDescription
configAlphareadonlyTreeViewConfiguration<TSchema>Configuration for the tree view to be used in this data store.
initializerAlphaoptional, readonly(creator: SharedObjectCreator) => InsertableTreeFieldFromImplicitField<TSchema>If provided, used to initialize the tree content when creating a new instance of the data store.
keyAlphaoptional, readonlySharedObjectKey<ITree>
registryAlphaoptional, readonlyIterable<SharedObjectKindAlpha<IFluidLoadable>> | SharedObjectRegistryIf provided, must include at least a SharedTree kind in the registry.

Property Details

config

Configuration for the tree view to be used in this data store.

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 config: TreeViewConfiguration<TSchema>;

Type: TreeViewConfiguration<TSchema>

initializer

If provided, used to initialize the tree content when creating a new instance of the data store.

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 initializer?: (creator: SharedObjectCreator) => InsertableTreeFieldFromImplicitField<TSchema>;

Type: (creator: SharedObjectCreator) => InsertableTreeFieldFromImplicitField<TSchema>

key

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 key?: SharedObjectKey<ITree>;

Type: SharedObjectKey<ITree>

registry

If provided, must include at least a SharedTree kind in the registry.

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 registry?: Iterable<SharedObjectKindAlpha<IFluidLoadable>> | SharedObjectRegistry;

Type: Iterable<SharedObjectKindAlpha<IFluidLoadable>> | SharedObjectRegistry

Remarks

configuredSharedTree(options) can be used to customize the SharedTree kind used in the registry.