Co-authored-by: maria-rcks <[email protected]> Co-authored-by: Julius Marminge <[email protected]> Co-authored-by: Claude Code <[email protected]>
16 lines
349 B
TypeScript
16 lines
349 B
TypeScript
export type ComposerSelectionRange = {
|
|
start: number;
|
|
end: number;
|
|
};
|
|
|
|
export function didComposerSelectionChangeVisibly(
|
|
previous: ComposerSelectionRange,
|
|
next: ComposerSelectionRange | null,
|
|
): boolean {
|
|
return (
|
|
next !== null &&
|
|
next.start !== next.end &&
|
|
(next.start !== previous.start || next.end !== previous.end)
|
|
);
|
|
}
|