UNPKG

@openshift-console/dynamic-plugin-sdk

Version:

Provides core APIs, types and utilities used by dynamic plugins at runtime.

14 lines (13 loc) 516 B
export var UserPreferenceFieldType; (function (UserPreferenceFieldType) { UserPreferenceFieldType["dropdown"] = "dropdown"; UserPreferenceFieldType["checkbox"] = "checkbox"; UserPreferenceFieldType["custom"] = "custom"; })(UserPreferenceFieldType || (UserPreferenceFieldType = {})); // Type guards export const isUserPreferenceGroup = (e) => { return e.type === 'console.user-preference/group'; }; export const isUserPreferenceItem = (e) => { return e.type === 'console.user-preference/item'; };