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