Sha256: 4050a8490008f6dc6186a237c36135f5946b98e7a9fdd3b2c6be309504209f12
Contents?: true
Size: 492 Bytes
Versions: 26
Compression:
Stored size: 492 Bytes
Contents
"use strict"; const enumerationValues = new Set([ "text/html", "text/xml", "application/xml", "application/xhtml+xml", "image/svg+xml" ]); 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 SupportedType`); } return string; };
Version data entries
26 entries across 26 versions & 1 rubygems