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