Make optional optional
This commit is contained in:
parent
fa48391586
commit
c624a4c4f2
1 changed files with 2 additions and 2 deletions
|
|
@ -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[];
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue