Page Contents

Home > @loopback/context > isDynamicValueProviderClass

isDynamicValueProviderClass() function

Check if the factory is a value factory provider class

Signature:

export declare function isDynamicValueProviderClass<T = unknown>(factory: unknown): factory is DynamicValueProviderClass<T>;

Parameters

Parameter Type Description
factory unknown A factory function or a dynamic value provider class

Returns:

factory is DynamicValueProviderClass<T>