1 | import { Type } from '@nestjs/common';
|
2 | import { ParameterObject, SchemaObject } from '../interfaces/open-api-spec.interface';
|
3 | import { SwaggerEnumType } from '../types/swagger-enum.type';
|
4 | declare type ParameterOptions = Omit<ParameterObject, 'in' | 'schema'>;
|
5 | interface ApiParamMetadata extends ParameterOptions {
|
6 | type?: Type<unknown> | Function | [Function] | string;
|
7 | format?: string;
|
8 | enum?: SwaggerEnumType;
|
9 | enumName?: string;
|
10 | }
|
11 | interface ApiParamSchemaHost extends ParameterOptions {
|
12 | schema: SchemaObject;
|
13 | }
|
14 | export declare type ApiParamOptions = ApiParamMetadata | ApiParamSchemaHost;
|
15 | export declare function ApiParam(options: ApiParamOptions): MethodDecorator;
|
16 | export {};
|