UNPKG

swagger-express-ts

Version:
1 lines 894 B
{"version":3,"sources":["../../lib/swagger-express-ts-lib/src/api-operation-patch.decorator.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,MAAM,WAAW,sBAAuB,SAAQ,qBAAqB;CAAG;AAExE,wBAAgB,iBAAiB,CAC7B,IAAI,EAAE,sBAAsB,GAC7B,eAAe,CAYjB","file":"api-operation-patch.decorator.d.ts","sourcesContent":["import { SwaggerService } from './swagger.service';\nimport { IApiOperationArgsBase } from './i-api-operation-args.base';\nexport interface IApiOperationPatchArgs extends IApiOperationArgsBase {}\n\nexport function ApiOperationPatch(\n args: IApiOperationPatchArgs\n): MethodDecorator {\n return (\n target: any,\n propertyKey: string | symbol,\n descriptor: PropertyDescriptor\n ) => {\n SwaggerService.getInstance().addOperationPatch(\n args,\n target,\n propertyKey\n );\n };\n}\n"]}