UNPKG

retrofit-axios-ts

Version:

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

16 lines (15 loc) 424 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PATCH = void 0; const registerMethod_1 = require("../helpers/registerMethod"); /** * PATCH decorator. * @param url * @param options * @sample @PATCH("/users/{userId}") * @constructor */ const PATCH = (url, options) => { return (0, registerMethod_1.registerMethod)("PATCH", url, options); }; exports.PATCH = PATCH;