UNPKG

retrofit-axios-ts

Version:

A declarative and axios based retrofit implementation for JavaScript and TypeScript.

17 lines (16 loc) 531 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Multipart = void 0; const Headers_1 = require("./Headers"); /** * 'content-type': 'multipart/form-data' will be added to HTTP headers. * @param target * @param methodName * @param descriptor * @sample @Multipart * @constructor */ const Multipart = (target, methodName, descriptor) => { (0, Headers_1.Headers)({ "content-type": "multipart/form-data" })(target, methodName, descriptor); }; exports.Multipart = Multipart;