mirror of
https://github.com/actions/setup-python.git
synced 2026-11-28 07:14:22 +01:00
Initial pass
This commit is contained in:
commit
39c08a0eaa
7242 files changed
+1886006
No files matched your search
+13
@@ -0,0 +1,13 @@
|
||||
"use strict";
|
||||
|
||||
const enumerationValues = new Set(["hidden", "visible", "prerender"]);
|
||||
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 VisibilityState`);
|
||||
}
|
||||
return string;
|
||||
}
|
||||
};
|
||||
Reference in new issue
Block a user