@tsclean/core
Version:
Plugin for API Rest Full development, based on Clean Architecture, IoC and Dependency Injection.
17 lines • 705 B
TypeScript
import { ControllerType } from 'types';
import { MetadataScanner } from '../app';
import { RequestMethod } from '../enums';
import { RouterProxyCallback } from './router-proxy';
export interface RouteDefinition {
path: string[];
requestMethod: RequestMethod;
targetCallback: RouterProxyCallback;
methodName: string;
}
export declare class PathsExplorer {
private readonly metadataScanner;
constructor(metadataScanner: MetadataScanner);
scanForPaths(instance: ControllerType, prototype?: object): RouteDefinition[];
exploreMethodMetadata(instance: ControllerType, prototype: object, methodName: string): RouteDefinition | null;
}
//# sourceMappingURL=paths-explorer.d.ts.map