Sha256: 6ec497abfcf982ac3ceabaef642ac7cc14f5366d178db39ee47bef5e3b151fbf
Contents?: true
Size: 416 Bytes
Versions: 26
Compression:
Stored size: 416 Bytes
Contents
"use strict"; const enumerationValues = new Set(["transparent", "native"]); exports.enumerationValues = enumerationValues; exports.convert = (globalObject, value, { context = "The provided value" } = {}) => { const string = `${value}`; if (!enumerationValues.has(string)) { throw new globalObject.TypeError(`${context} '${string}' is not a valid enumeration value for EndingType`); } return string; };
Version data entries
26 entries across 26 versions & 1 rubygems