Sha256: f64e90392cce6081c7eabdd764bb886b23c8980ed969bda2dd42d43c4ffd45f7
Contents?: true
Size: 400 Bytes
Versions: 20
Compression:
Stored size: 400 Bytes
Contents
"use strict"; const enumerationValues = new Set(["blob", "arraybuffer"]); exports.enumerationValues = enumerationValues; exports.convert = function convert(value, { context = "The provided value" } = {}) { const string = `${value}`; if (!enumerationValues.has(string)) { throw new TypeError(`${context} '${string}' is not a valid enumeration value for BinaryType`); } return string; };
Version data entries
20 entries across 20 versions & 1 rubygems