( target: Constructor<Provider<T>>, )
| 79 | * @typeParam T - Value type |
| 80 | */ |
| 81 | export function asProvider<T>( |
| 82 | target: Constructor<Provider<T>>, |
| 83 | ): BindingTemplate<T> { |
| 84 | return function bindAsProvider(binding) { |
| 85 | binding.toProvider(target).tag(ContextTags.PROVIDER, { |
| 86 | [ContextTags.TYPE]: ContextTags.PROVIDER, |
| 87 | }); |
| 88 | }; |
| 89 | } |
| 90 | |
| 91 | /** |
| 92 | * A factory function to create a template function to bind the target class |
no test coverage detected