UNPKG

@nestjs/common

Version:

Decorators, pipes, exceptions and utilities for NestJS applications: @Controller(), @Injectable(), @Body(), ValidationPipe, HttpException and more.

9 lines (8 loc) • 439 B
import { FactoryProvider, Provider } from '../../interfaces/index.js'; /** * * @param providers List of a module's providers * @param tokens Injection tokens needed for a useFactory function (usually the module's options' token) * @returns All the providers needed for the tokens' injection (searched recursively) */ export declare function getInjectionProviders(providers: Provider[], tokens: FactoryProvider['inject']): Provider[];