Page Contents

Home > @loopback/context > isProviderClass

isProviderClass() function

Check if a class implements Provider interface

Signature:

export declare function isProviderClass(cls: Constructor<unknown>): cls is Constructor<Provider<unknown>>;

Parameters

Parameter Type Description
cls Constructor<unknown> A class

Returns:

cls is Constructor<Provider<unknown>>