UNPKG

@nestjs/core

Version:

The core of NestJS, a TypeScript framework for Node.js backends: modules, dependency injection and the request pipeline, on Express, Fastify or node:http.

12 lines (11 loc) • 446 B
import { ReplFunction } from '../repl-function.js'; export class SelectReplFn extends ReplFunction { fnDefinition = { name: 'select', description: 'Allows navigating through the modules tree, for example, to pull out a specific instance from the selected module.', signature: '(token: DynamicModule | ClassRef) => INestApplicationContext', }; action(token) { return this.ctx.app.select(token); } }