Files
nest/packages/core/inspector/interfaces/entrypoint.interface.ts
2026-02-15 13:07:08 +01:00

25 lines
586 B
TypeScript

import type { RequestMethod } from '@nestjs/common';
import type { VersionValue } from '@nestjs/common/internal';
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;
};