UNPKG

@atlaskit/editor-common

Version:

A package that contains common classes and components for editor and renderer

10 lines (9 loc) 430 B
import type { NodeType } from '@atlaskit/editor-prosemirror/model'; export declare function getBaseNodeTypeName(nodeType: NodeType): string; /** * Returns true if two node types share the same base type name. * * Useful for comparing nodes that may exist as schema variants * (e.g. `panel` and `panel_c1` are considered the same base type). */ export declare function isNodeOfSameBaseType(a: NodeType, b: NodeType): boolean;