Skip to main content

$isTextPointCaret

function

Guard to check if the given caret is specifically a TextPointCaret

function $isTextPointCaret<D extends CaretDirection>(caret: null | undefined | PointCaret<D>): caret is TextPointCaret<TextNode, D>

Import

import { $isTextPointCaret } from '@modular/sdk/editor';

Notes

returns
true if it is a TextPointCaret