UNPKG

@nestjs/swagger

Version:

OpenAPI for NestJS: generate the API document from controllers and decorators, serve Swagger UI, and derive request types with mapped types.

4 lines (3 loc) • 195 B
import { DECORATORS } from '../constants.js'; export const exploreApiExcludeControllerMetadata = (metatype) => Reflect.getMetadata(DECORATORS.API_EXCLUDE_CONTROLLER, metatype)?.[0] === true;