mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-23 00:27:49 +08:00
7 lines
239 B
TypeScript
7 lines
239 B
TypeScript
import { NodeSelection } from 'prosemirror-state'
|
|
import isObject from '../utilities/isObject'
|
|
|
|
export default function isNodeSelection(value: unknown): value is NodeSelection {
|
|
return isObject(value) && value instanceof NodeSelection
|
|
}
|