Skip to main content
Version: v1

MockHandle Class

Mock implementation of IFluidHandle.

Signature

export declare class MockHandle<T> implements IFluidHandle

Implements: IFluidHandle

Type Parameters

ParameterDescription
T

Constructors

ConstructorDescription
(constructor)(value, path, absolutePath)Constructs a new instance of the MockHandle class

Properties

PropertyTypeDescription
absolutePathstring
IFluidHandleIFluidHandle
isAttachedboolean
pathstring
valueT

Methods

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

Constructor Details

(constructor)

Constructs a new instance of the MockHandle class

Signature

constructor(value: T, path?: string, absolutePath?: string);

Parameters

ParameterModifiersTypeDescription
valueT
pathoptionalstring
absolutePathoptionalstring

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

value

Signature

protected readonly value: T;

Type: T

Method Details

attachGraph

Signature

attachGraph(): void;

bind

Signature

bind(): void;

get

Signature

get(): Promise<any>;

Returns

Return type: Promise<any>