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.

11 lines (10 loc) 503 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const constants_ts_1 = require("./constants.js"); const IgnoreParam = (target, propertyKey, parameterIndex) => { const ignoreParams = Reflect.getMetadata(constants_ts_1.ClientConstants.IgnoreParams, target, propertyKey) ?? new Set(); ignoreParams.add(parameterIndex); Reflect.defineMetadata(constants_ts_1.ClientConstants.IgnoreParams, ignoreParams, target, propertyKey); }; exports.default = IgnoreParam;