Skip to main content
Version: v1

FluidObjectHandle Class

Signature​

export declare class FluidObjectHandle<T extends FluidObject = FluidObject> implements IFluidHandle

Implements: IFluidHandle

Type Parameters​

ParameterConstraintDefaultDescription
TFluidObjectFluidObject

Constructors​

ConstructorDescription
(constructor)(value, path, routeContext)Creates a new FluidObjectHandle.

Properties​

PropertyTypeDescription
absolutePathstring
IFluidHandleIFluidHandle
isAttachedboolean
pathstring
routeContextIFluidHandleContext
valueT

Methods​

MethodReturn TypeDescription
attachGraph()void
bind(handle)void
get()Promise<any>

Constructor Details​

(constructor)​

Creates a new FluidObjectHandle.

Signature​

constructor(value: T, path: string, routeContext: IFluidHandleContext);

Parameters​

ParameterTypeDescription
valueTThe FluidObject object this handle is for.
pathstringThe path to this handle relative to the routeContext.
routeContextIFluidHandleContextThe parent IFluidHandleContext that has a route to this handle.

Property Details​

absolutePath​

Signature​

readonly absolutePath: string;

Type: string

IFluidHandle​

Signature​

get IFluidHandle(): IFluidHandle;

Type: IFluidHandle

isAttached​

Signature​

get isAttached(): boolean;

Type: boolean

path​

Signature​

readonly path: string;

Type: string

routeContext​

Signature​

readonly routeContext: IFluidHandleContext;

Type: IFluidHandleContext

value​

Signature​

protected readonly value: T;

Type: T

Method Details​

attachGraph​

Signature​

attachGraph(): void;

bind​

Signature​

bind(handle: IFluidHandle): void;

Parameters​

ParameterTypeDescription
handleIFluidHandle

get​

Signature​

get(): Promise<any>;

Returns​

Return type: Promise<any>