swagger-express-typescript
Version:
Generate and serve swagger.json
1 lines • 968 B
Source Map (JSON)
{"version":3,"sources":["../../lib/swagger-express-typescript-lib/src/api-operation-delete.decorator.ts"],"names":[],"mappings":";;;AAAA,qDAAmD;AAInD,SAAgB,kBAAkB,CAC9B,IAA6B;IAE7B,OAAO,UACH,MAAW,EACX,WAA4B,EAC5B,UAA8B;QAE9B,gCAAc,CAAC,WAAW,EAAE,CAAC,kBAAkB,CAC3C,IAAI,EACJ,MAAM,EACN,WAAW,CACd,CAAC;IACN,CAAC,CAAC;AACN,CAAC;AAdD,gDAcC","file":"api-operation-delete.decorator.js","sourcesContent":["import { SwaggerService } from './swagger.service';\nimport { IApiOperationArgsBase } from './i-api-operation-args.base';\nexport interface IApiOperationDeleteArgs extends IApiOperationArgsBase {}\n\nexport function ApiOperationDelete(\n args: IApiOperationDeleteArgs\n): MethodDecorator {\n return (\n target: any,\n propertyKey: string | symbol,\n descriptor: PropertyDescriptor\n ) => {\n SwaggerService.getInstance().addOperationDelete(\n args,\n target,\n propertyKey\n );\n };\n}\n"]}