mirror of
https://github.com/nestjs/nest.git
synced 2026-02-21 23:11:44 +00:00
25 lines
586 B
TypeScript
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;
|
|
};
|