@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
Parameter | Type | Description |
---|---|---|
value | ResolveCallback<K> | The callback to call during resolution. |
Resolver<K>
The resolver.