UNPKG

@atlaskit/editor-plugin-selection-extension

Version:

editor-plugin-selection-extension plugin for @atlaskit/editor-core

15 lines (14 loc) 602 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isNestedDropdownMenuConfiguration = void 0; /** * Type guard to check if the given configuration is for a dropdown menu. * * @param item - The menu item configuration to check, either menu item or dropdown menu * @returns True if the item configuration is for a dropdown menu, false otherwise */ var isNestedDropdownMenuConfiguration = exports.isNestedDropdownMenuConfiguration = function isNestedDropdownMenuConfiguration(item) { return 'getMenuItems' in item && typeof item.getMenuItems === 'function'; };