You are viewing documentation for a previous version of FAST. The latest version is 3.x. View latest docs →

@microsoft/fast-element/di.js > Factory > constructAsync

Factory.constructAsync() method

Constructs an instance of the factory's object, allowing for async resolution of dependencies.

Signature:

constructAsync(container: Container, dynamicDependencies?: Key[]): Promise<Resolved<T>>;

Parameters

Parameter

Type

Description

container

Container

The container the object is being constructor for.

dynamicDependencies

Key[]

(Optional) Dynamic dependencies supplied to the constructor.

Returns:

Promise<Resolved<T>>