UNPKG

rucken

Version:

Console tools and scripts for nx and not only that I (EndyKaufman) use to automate the workflow and speed up the development process

37 lines (36 loc) 825 B
/** * @module ConsoleScanner */ import { INestApplicationContext } from '@nestjs/common'; import { CreateCommandOptions } from './decorators'; /** * The interface for command method metadata */ export interface MethodsMetadata { name: string; metadata: CreateCommandOptions; } /** * The response of the scanner */ export interface ScanResponse { instance: any; metadata: CreateCommandOptions; methods: MethodsMetadata[]; } export declare class ConsoleScanner { /** * Get all the modules */ private getModules; /** * Get a list of classes methods */ private getInstanceMethods; /** * Scan an application * @param app * @param includedModules */ scan(app: INestApplicationContext, includedModules?: any[]): Promise<Set<ScanResponse>>; }