|
1 | 1 | import type {
|
2 |
| - // PositionPlainObject, |
| 2 | + Command, |
| 3 | + CommandLatest, |
| 4 | + PlainSpyIDERecordedValues, |
3 | 5 | SelectionPlainObject,
|
4 | 6 | SerializedMarks,
|
5 | 7 | TargetPlainObject,
|
@@ -30,18 +32,23 @@ function splitDocumentWithOffsets(documentContents: string): { line: string; off
|
30 | 32 | *
|
31 | 33 | * @param {Object} options - An object containing optional fields like marks, command, or ide.
|
32 | 34 | * @param {SerializedMarks} [options.marks] - An object containing marks with line, start, and end positions.
|
33 |
| - * @param {any} [options.command] - (Optional) The command object specifying the command details. |
34 |
| - * @param {any} [options.ide] - (Optional) The ide object specifying the IDE details. |
| 35 | + * @param {CommandLatest | Command} [options.command] - (Optional) The command object specifying the command details. |
| 36 | + * @param {PlainSpyIDERecordedValues} [options.ide] - (Optional) The ide object specifying the IDE details. |
35 | 37 | * @returns {DecorationItem[]} An array of decoration objects.
|
36 | 38 | */
|
37 | 39 | function createDecorations(
|
38 | 40 | options: {
|
39 | 41 | marks?: SerializedMarks;
|
40 |
| - command?: any; |
41 |
| - ide?: any; |
| 42 | + command?: CommandLatest | Command; |
| 43 | + ide?: PlainSpyIDERecordedValues; |
42 | 44 | lines?: string[]
|
43 | 45 | selections?: SelectionPlainObject[]
|
44 | 46 | thatMark?: TargetPlainObject[]
|
| 47 | + sourceMark?: TargetPlainObject[] |
| 48 | + finalStateMarkHelpers?: { |
| 49 | + sourceMark?: TargetPlainObject[] |
| 50 | + thatMark?: TargetPlainObject[] |
| 51 | + } |
45 | 52 | } = {} // Default to an empty object
|
46 | 53 | ): DecorationItem[] {
|
47 | 54 | const { marks, ide, lines, selections, thatMark /* command */ } = options
|
|
0 commit comments