Skip to main content
Version: 1.x

@microsoft/fast-foundation > ResolverBuilder > callback

ResolverBuilder.callback() method

Creates a resolver that invokes a callback function for every dependency resolution request, allowing custom logic to return the dependency.

Signature:
callback(value: ResolveCallback<K>): Resolver<K>;

Parameters

ParameterTypeDescription
valueResolveCallback<K>The callback to call during resolution.
Returns:

Resolver<K>

The resolver.