weasel API - v0.8.0
    Preparing search index...

    Interface TextEditSelection

    The caret's character range within the text being edited. Half-open [start, end) over the concatenated run text, normalized so start <= end regardless of which way the user dragged. start === end is a collapsed caret — a real position, not the absence of one, which is why the hook reports null rather than a zero-width range when there is no caret.

    interface TextEditSelection {
        end: number;
        start: number;
    }
    Index

    Properties

    Properties

    end: number
    start: number