UNPKG

@bytekit/autofetch

Version:

A TypeScript-first, decorator-based HTTP client for building elegant and modular API clients with fetch under the hood. Inspired by Spring's `@RestClient` and OpenFeign.

8 lines (7 loc) 299 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const constants_ts_1 = require("./constants.js"); const Client = (options) => (target) => { Reflect.defineMetadata(constants_ts_1.ClientConstants.ClientOptions, options, target.prototype); }; exports.default = Client;