eo-typewriterjs / TStyleTarget
Type Alias: TStyleTarget
ts
type TStyleTarget =
| {
mode: "range";
from: number;
to: number;
}
| {
mode: "selection";
cursorId: string;
};Defined in: core/events/types/style-target.type.ts:7
Description
The document range targeted by a style or unstyle event.
"range": the fixed[from, to)range, clamped to the document at apply time"selection": the active selection ofcursorId, resolved at apply time