Skip to main content

ITestFluidObject Interface

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

To use, import via @fluidframework/test-utils/legacy.

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

Signature

export interface ITestFluidObject extends IProvideTestFluidObject, IFluidLoadable

Extends: IProvideTestFluidObject, IFluidLoadable

Properties

PropertyAlertsModifiersTypeDescription
channelBetareadonlyIFluidDataStoreChannel
contextBetareadonlyIFluidDataStoreContext
rootBetaISharedMap
runtimeBetareadonlyIFluidDataStoreRuntime

Methods

MethodAlertsReturn TypeDescription
getSharedObject(id)BetaPromise<T>

Property Details

channel

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

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

Signature

readonly channel: IFluidDataStoreChannel;

Type: IFluidDataStoreChannel

context

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

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

Signature

readonly context: IFluidDataStoreContext;

Type: IFluidDataStoreContext

root

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

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

Signature

root: ISharedMap;

Type: ISharedMap

runtime

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

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

Signature

readonly runtime: IFluidDataStoreRuntime;

Type: IFluidDataStoreRuntime

Method Details

getSharedObject

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

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

Signature

getSharedObject<T = any>(id: string): Promise<T>;
Type Parameters
ParameterDefaultDescription
Tany

Parameters

ParameterTypeDescription
idstring

Returns

Return type: Promise<T>