@nestjs/swagger
Version:
Nest - modern, fast, powerful node.js web framework (@swagger)
9 lines (8 loc) • 573 B
TypeScript
import { SchemaObjectMetadata } from '../interfaces/schema-object-metadata.interface';
export interface ApiPropertyOptions extends Omit<SchemaObjectMetadata, 'name' | 'enum'> {
name?: string;
enum?: any[] | Record<string, any>;
}
export declare function ApiProperty(options?: ApiPropertyOptions): PropertyDecorator;
export declare function ApiPropertyOptional(options?: ApiPropertyOptions): PropertyDecorator;
export declare function ApiResponseProperty(options?: Pick<ApiPropertyOptions, 'type' | 'example' | 'format' | 'enum' | 'deprecated'>): PropertyDecorator;