( cls: unknown, )
| 64 | * @typeParam T - Value type |
| 65 | */ |
| 66 | export function isProviderClass<T>( |
| 67 | cls: unknown, |
| 68 | ): cls is Constructor<Provider<T>> { |
| 69 | return ( |
| 70 | typeof cls === 'function' && typeof cls.prototype?.value === 'function' |
| 71 | ); |
| 72 | } |
| 73 | |
| 74 | /** |
| 75 | * A factory function to create a template function to bind the target class |
no outgoing calls