Sha256: 955891d4228e9470372d440ce7ab4468e3901cb5327ff906ff2d3fcf022649eb
Contents?: true
Size: 399 Bytes
Versions: 20
Compression:
Stored size: 399 Bytes
Contents
"use strict"; const enumerationValues = new Set(["open", "closed"]); 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 ShadowRootMode`); } return string; };
Version data entries
20 entries across 20 versions & 1 rubygems