@fluidframework/runtime-utils Package
Classes
| Class | Alerts | Description |
|---|---|---|
| FluidHandleBase | Legacy | Base class which can be uses to assist implementing IFluidHandleInternal. |
| RequestParser | Legacy | The Request Parser takes an IRequest provides parsing and sub request creation |
| RuntimeFactoryHelper | Legacy | |
| SummaryTreeBuilder | Legacy | A helper class for building summary trees. |
Types
| TypeAlias | Alerts | Modifiers | Description |
|---|---|---|---|
| Audience | Alpha | sealed | All clients connected to the op stream, both read-only and read/write. |
Functions
| Function | Alerts | Return Type | Description |
|---|---|---|---|
| asLegacyAlpha(runtime) | Legacy | ContainerRuntimeBaseAlpha | Converts types to their alpha counterparts to expose alpha functionality. |
| asLegacyAlpha(runtime) | Legacy | IFluidDataStoreRuntimeAlpha | Converts types to their alpha counterparts to expose alpha functionality. |
| compareFluidHandles(a, b) | boolean | Compare two IFluidHandles. | |
| convertToSummaryTreeWithStats(snapshot, fullTree) | Legacy | ISummaryTreeWithStats | Converts snapshot ITree to ISummaryTree format and tracks stats. |
| create404Response(request) | Legacy | IResponse | Creates a 404 "not found" response for the given request |
| getContainerAudience(container) | Alpha | Audience | Gets the Audience from a Fluid container created by any ServiceClient. |
| isFluidHandle(value) | value is IFluidHandle | Check if a value is an @fluidframework/core-interfaces#IFluidHandle. | |
| isFluidHandlePayloadPending(handle) | Legacy | handle is IFluidHandlePayloadPending<T> | Check if the handle is an IFluidHandlePayloadPending. |
| isLocalFluidHandle(handle) | Legacy | handle is ILocalFluidHandle<T> | Check if the handle is an ILocalFluidHandle. |
| lookupTemporaryBlobStorageId(containerRuntime, handle) | Legacy | string | undefined | Lookup the blob storage ID for a blob handle. |
| toDeltaManagerInternal(deltaManager) | Legacy | IDeltaManager<ISequencedDocumentMessage, IDocumentMessage> | Casts the public API for delta manager into the internal one, exposing access to APIs needed by the implementation of Fluid Framework but not its users. |
| toFluidHandleErased(handle) | Legacy | IFluidHandleErased<T> | Type erase IFluidHandleInternal for use with fluidHandleSymbol. |
| toFluidHandleInternal(handle) | Legacy | IFluidHandleInternal<T> | Downcast an IFluidHandle to an IFluidHandleInternal. |
Function Details
asLegacyAlpha
Converts types to their alpha counterparts to expose alpha functionality.
This API is provided for existing users, but is not recommended for new users.
To use, import via @fluidframework/runtime-utils/legacy.
For more information about our API support guarantees, see here.
Signature
export declare function asLegacyAlpha(runtime: IContainerRuntimeBase): ContainerRuntimeBaseAlpha;
Parameters
| Parameter | Type | Description |
|---|---|---|
| runtime | IContainerRuntimeBase |
Returns
Return type: ContainerRuntimeBaseAlpha
asLegacyAlpha
Converts types to their alpha counterparts to expose alpha functionality.
This API is provided for existing users, but is not recommended for new users.
To use, import via @fluidframework/runtime-utils/legacy.
For more information about our API support guarantees, see here.
Signature
export declare function asLegacyAlpha(runtime: IFluidDataStoreRuntime): IFluidDataStoreRuntimeAlpha;
Parameters
| Parameter | Type | Description |
|---|---|---|
| runtime | IFluidDataStoreRuntime |
Returns
Return type: IFluidDataStoreRuntimeAlpha
compareFluidHandles
Compare two IFluidHandles.
Signature
export declare function compareFluidHandles(a: IFluidHandle, b: IFluidHandle): boolean;
Remarks
Returns true iff both handles have the same internal absolutePath.
Parameters
| Parameter | Type | Description |
|---|---|---|
| a | IFluidHandle | |
| b | IFluidHandle |
Returns
Return type: boolean