UNPKG

@openapi-ts/request-types

Version:

TypeScript types for HTTP requests, supporting code generated by @openapi-ts/backend.

18 lines 616 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Params = void 0; const utils_1 = require("./utils"); var Params; (function (Params) { function getValue(obj, key) { const v = (0, utils_1.findKey)(obj, key); return Array.isArray(v) ? v[0] : v; } Params.getValue = getValue; function getValues(obj, key) { const v = (0, utils_1.findKey)(obj, key); return Array.isArray(v) ? v : v != null ? [v] : undefined; } Params.getValues = getValues; })(Params = exports.Params || (exports.Params = {})); //# sourceMappingURL=types.js.map