智能照明系统APP-本地串口
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
LightingSystemApp-serial/.svn/pristine/07/078931bf14b0e823e2bc365b923...

14 lines
404 B

3 years ago
"use strict";
const enumerationValues = new Set(["start", "center", "end", "nearest"]);
module.exports = {
enumerationValues,
convert(value, { context = "The provided value" } = {}) {
const string = `${value}`;
if (!enumerationValues.has(value)) {
throw new TypeError(`${context} '${value}' is not a valid enumeration value for ScrollLogicalPosition`);
}
return string;
}
};