UNPKG

@nestjs/swagger

Version:

Nest - modern, fast, powerful node.js web framework (@swagger)

18 lines (17 loc) 665 B
import { Type } from '@nestjs/common'; import { ParameterLocation } from '../interfaces/open-api-spec.interface'; export interface ParamWithTypeMetadata { name?: string | number | object; type?: Type<unknown>; in?: ParameterLocation | 'body' | typeof PARAM_TOKEN_PLACEHOLDER; isArray?: boolean; required: true; enum?: unknown[]; } export declare type ParamsWithType = Record<string, ParamWithTypeMetadata>; declare const PARAM_TOKEN_PLACEHOLDER = "placeholder"; export declare class ParameterMetadataAccessor { explore(instance: object, prototype: Type<unknown>, method: Function): ParamsWithType; private mapParamType; } export {};