import { ExtensionTag } from '@remirror/core' ; import { NodeType , ProsemirrorNode } from '@remirror/pm' ; export function isList ( type ) { return ! ! type . spec . group ?. includes ( ExtensionTag . ListContainerNode ) ; } export function isListItem ( type ) { return ! ! type . spec . group ?. includes ( ExtensionTag . ListItemNode ) ; } export function isListNode ( node ) { return isList ( node . type ) ; } export function isListItemNode ( node ) { return isListItem ( node . type ) ; }