UNPKG

725 BTypeScriptView Raw
1import { SchemaObjectMetadata } from '../interfaces/schema-object-metadata.interface';
2export interface ApiPropertyOptions extends Omit<SchemaObjectMetadata, 'name' | 'enum'> {
3 name?: string;
4 enum?: any[] | Record<string, any>;
5 enumName?: string;
6}
7export declare function ApiProperty(options?: ApiPropertyOptions): PropertyDecorator;
8export declare function createApiPropertyDecorator(options?: ApiPropertyOptions, overrideExisting?: boolean): PropertyDecorator;
9export declare function ApiPropertyOptional(options?: ApiPropertyOptions): PropertyDecorator;
10export declare function ApiResponseProperty(options?: Pick<ApiPropertyOptions, 'type' | 'example' | 'format' | 'enum' | 'deprecated'>): PropertyDecorator;