Sha256: 8f85ee8da78bcece5a275531a50b6c6ef8147a734716f938ffa93f88f8d2775e
Contents?: true
Size: 416 Bytes
Versions: 20
Compression:
Stored size: 416 Bytes
Contents
"use strict"; const enumerationValues = new Set(["hidden", "visible", "prerender"]); 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 VisibilityState`); } return string; };
Version data entries
20 entries across 20 versions & 1 rubygems