From c624a4c4f2db164f878f46bc1a9a0b59d2702242 Mon Sep 17 00:00:00 2001 From: Andras Schmelczer Date: Wed, 28 Oct 2026 19:28:49 +0000 Subject: [PATCH] Make optional optional --- reconcile-js/src/core.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reconcile-js/src/core.ts b/reconcile-js/src/core.ts index e9cd27b..1139dd5 100644 --- a/reconcile-js/src/core.ts +++ b/reconcile-js/src/core.ts @@ -112,7 +112,7 @@ export interface TextWithCursors { } /** - * Like `TextWithCursors`, but cursors may be null or undefined (treated as empty). + * Like `TextWithCursors`, but cursors may be omitted, null, or undefined (treated as empty). * Used as input where cursor tracking is optional. */ export interface TextWithOptionalCursors { @@ -123,7 +123,7 @@ export interface TextWithOptionalCursors { * Array of cursor positions within the text. Can be null, undefined, or empty * if there are no cursors to track. Each cursor has a unique ID and position. */ - cursors: null | undefined | CursorPosition[]; + cursors?: null | undefined | CursorPosition[]; } /**