Skip to main content

@fluidframework/datastore Package

Interfaces​

InterfaceAlertsDescription
ISharedObjectRegistryLegacy

Classes​

ClassAlertsDescription
FluidDataStoreRuntimeLegacyBase data store class
FluidObjectHandleLegacyHandle for a shared FluidObject.

Enumerations​

EnumAlertsDescription
DataStoreMessageTypeLegacy

Functions​

FunctionAlertsReturn TypeDescription
mixinRequestHandler(requestHandler, Base)Legacytypeof FluidDataStoreRuntimeMixin class that adds request handler to FluidDataStoreRuntime Request handler is only called when data store can't resolve request, i.e. for custom requests.
mixinSummaryHandler(handler, Base)Deprecated, Legacytypeof FluidDataStoreRuntimeMixin class that adds await for DataObject to finish initialization before we proceed to summary.

Function Details​

mixinRequestHandler​

Mixin class that adds request handler to FluidDataStoreRuntime Request handler is only called when data store can't resolve request, i.e. for custom requests.

This API is provided for existing users, but is not recommended for new users.

To use, import via @fluidframework/datastore/legacy.

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

Signature​

mixinRequestHandler: (requestHandler: (request: IRequest, runtime: FluidDataStoreRuntime) => Promise<IResponse>, Base?: typeof FluidDataStoreRuntime) => typeof FluidDataStoreRuntime

Parameters​

ParameterModifiersTypeDescription
requestHandler(request: IRequest, runtime: FluidDataStoreRuntime) => Promise<IResponse>request handler to mix in
Baseoptionaltypeof FluidDataStoreRuntimebase class, inherits from FluidDataStoreRuntime

Returns​

Return type: typeof FluidDataStoreRuntime

mixinSummaryHandler​

Mixin class that adds await for DataObject to finish initialization before we proceed to summary.

This API is deprecated and will be removed in a future release.

This API is deprecated and will be removed in a future release. There is no replacement for it.

This API is provided for existing users, but is not recommended for new users.

To use, import via @fluidframework/datastore/legacy.

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

Signature​

mixinSummaryHandler: (handler: (runtime: FluidDataStoreRuntime, setCurrentSummarizeStep: (currentStep: string) => void) => Promise<{
path: string[];
content: string;
} | undefined>, Base?: typeof FluidDataStoreRuntime) => typeof FluidDataStoreRuntime

Parameters​

ParameterModifiersTypeDescription
handler(runtime: FluidDataStoreRuntime, setCurrentSummarizeStep: (currentStep: string) => void) => Promise<{ path: string[]; content: string; } | undefined>handler that returns info about blob to be added to summary. Or undefined not to add anything to summary.
Baseoptionaltypeof FluidDataStoreRuntimebase class, inherits from FluidDataStoreRuntime

Returns​

Return type: typeof FluidDataStoreRuntime