1 | import "core-js/modules/es.array.find.js";
|
2 | import "core-js/modules/es.object.values.js";
|
3 | export 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 |
|
14 | export function isSupportedType(type) {
|
15 | return !!Object.values(types).find(function (typeVal) {
|
16 | return typeVal === type;
|
17 | });
|
18 | } |
\ | No newline at end of file |