Sha256: 1c16d25a0c88d9958814ef0cab0834f42379d38f014667448a9887521f57639e
Contents?: true
Size: 418 Bytes
Versions: 20
Compression:
Stored size: 418 Bytes
Contents
"use strict"; const enumerationValues = new Set(["select", "start", "end", "preserve"]); 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 SelectionMode`); } return string; };
Version data entries
20 entries across 20 versions & 1 rubygems