Send spans instead of indexes

This commit is contained in:
Andras Schmelczer 2025-06-07 11:32:20 +01:00
parent 1475a549d4
commit a628ff348e
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
6 changed files with 28 additions and 16 deletions

View file

@ -1,3 +1,4 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { CursorSpan } from "./CursorSpan";
export type ClientCursors = { deviceId: string, cursors: { [key in string]?: Array<number> }, };
export type ClientCursors = { deviceId: string, cursors: { [key in string]?: Array<CursorSpan> }, };

View file

@ -1,3 +1,4 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
import type { CursorSpan } from "./CursorSpan";
export type CursorPositionFromClient = { documentToCursors: { [key in string]?: Array<number> }, };
export type CursorPositionFromClient = { documentToCursors: { [key in string]?: Array<CursorSpan> }, };

View file

@ -0,0 +1,3 @@
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
export type CursorSpan = { start: number; end: number };