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