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.

18 lines (17 loc) • 616 B
import { type Injectable } from '@nestjs/common/internal'; export declare class MetadataScanner { private readonly cachedScannedPrototypes; /** * @deprecated * @see {@link getAllMethodNames} * @see getAllMethodNames */ scanFromPrototype<T extends Injectable, R = any>(instance: T, prototype: object | null, callback: (name: string) => R): R[]; /** * @deprecated * @see {@link getAllMethodNames} * @see getAllMethodNames */ getAllFilteredMethodNames(prototype: object): IterableIterator<string>; getAllMethodNames(prototype: object | null): string[]; }