UNPKG

retrofit-axios-ts

Version:

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

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