Skip to main content
Version: v1

MockHandle Class

Mock implementation of IFluidHandle.

Signature

export declare class MockHandle<T> implements IFluidHandle

Implements: IFluidHandle

Type Parameters

Parameter Description
T

Constructors

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

Properties

Property Type Description
absolutePath string
IFluidHandle IFluidHandle
isAttached boolean
path string
value T

Methods

Method Return Type Description
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

Parameter Modifiers Type Description
value T
path optional string
absolutePath optional string

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>