Page Contents
Home > @loopback/context > isProviderClass
isProviderClass() function
Check if a class implements Provider
interface
Signature:
export declare function isProviderClass<T>(cls: unknown): cls is Constructor<Provider<T>>;
Parameters
Parameter | Type | Description |
---|---|---|
cls | unknown | A class |
Returns:
cls is Constructor<Provider<T>>