UNPKG

480 BJavaScriptView Raw
1import "core-js/modules/es.array.find.js";
2import "core-js/modules/es.object.values.js";
3export var types;
4
5(function (types) {
6 types["TAB"] = "tab";
7 types["PANEL"] = "panel";
8 types["TOOL"] = "tool";
9 types["TOOLEXTRA"] = "toolextra";
10 types["PREVIEW"] = "preview";
11 types["NOTES_ELEMENT"] = "notes-element";
12})(types || (types = {}));
13
14export function isSupportedType(type) {
15 return !!Object.values(types).find(function (typeVal) {
16 return typeVal === type;
17 });
18}
\No newline at end of file