Skip to main content
Version: 2.x

Factory.constructAsync() method

@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>>