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.

15 lines (14 loc) • 720 B
import { Type } from '@nestjs/common'; import 'reflect-metadata'; export declare class ModelPropertiesAccessor { getModelProperties(prototype: Type<unknown>): string[]; isHiddenField(prototype: Type<unknown>, field: string): boolean; isHiddenProperty(prototype: Type<unknown>, key: string, stopAt?: object): boolean; private keepDecoratedInheritedOptions; private getDecoratedInheritedOptions; getDecoratedOptions(prototype: object, key: string): Record<string, any> | undefined; private pickDecoratedOptions; getPropertyMetadata(prototype: object, key: string): Record<string, any> | undefined; private hasOwnMetadataUpTo; applyMetadataFactory(prototype: Type<unknown>): void; }