ResolverBuilder.callback() method
@microsoft/fast-element/di.js > 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 | The callback to call during resolution. |
Returns:
Resolver<K>
The resolver.