Send spans instead of indexes
This commit is contained in:
parent
1475a549d4
commit
a628ff348e
6 changed files with 28 additions and 16 deletions
|
|
@ -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> }, };
|
||||
|
|
|
|||
|
|
@ -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> }, };
|
||||
|
|
|
|||
3
frontend/sync-client/src/services/types/CursorSpan.ts
Normal file
3
frontend/sync-client/src/services/types/CursorSpan.ts
Normal 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 };
|
||||
Loading…
Add table
Add a link
Reference in a new issue