UNPKG

@aws-lambda-powertools/parameters

Version:
20 lines (19 loc) 680 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.GetMultipleOptions = void 0; const GetOptions_js_1 = require("./GetOptions.js"); /** * Options for the `getMultiple` method. * * Extends the `GetOptions` class and adds the `throwOnTransformError` option. */ class GetMultipleOptions extends GetOptions_js_1.GetOptions { throwOnTransformError = false; constructor(envVarsService, options = {}) { super(envVarsService, options); if (options.throwOnTransformError !== undefined) { this.throwOnTransformError = options.throwOnTransformError; } } } exports.GetMultipleOptions = GetMultipleOptions;