UNPKG

@nestjs/core

Version:

Nest - modern, fast, powerful node.js web framework (@core)

24 lines (23 loc) 614 B
import { RequestMethod } from '@nestjs/common'; import { VersionValue } from '@nestjs/common/interfaces'; export type HttpEntrypointMetadata = { path: string; requestMethod: keyof typeof RequestMethod; methodVersion?: VersionValue; controllerVersion?: VersionValue; }; export type MiddlewareEntrypointMetadata = { path: string; requestMethod: keyof typeof RequestMethod; version?: VersionValue; }; export type Entrypoint<T> = { id?: string; type: string; methodName: string; className: string; classNodeId: string; metadata: { key: string; } & T; };