Skip to main content
Version: 2.x

ResolverBuilder.instance() method

@microsoft/fast-element/di.js > ResolverBuilder > instance

ResolverBuilder.instance() method

Creates a resolver for an existing object instance.

Signature:

instance(value: K): Resolver<K>;

Parameters

Parameter

Type

Description

value

K

The instance to resolve.

Returns:

Resolver<K>

The resolver.