Skip to content

Commit fbded1f

Browse files
committed
feat: Update types in helpers.ts
1 parent da387eb commit fbded1f

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

packages/test-case-component/src/helpers.ts

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import type {
2-
// PositionPlainObject,
2+
Command,
3+
CommandLatest,
4+
PlainSpyIDERecordedValues,
35
SelectionPlainObject,
46
SerializedMarks,
57
TargetPlainObject,
@@ -30,18 +32,23 @@ function splitDocumentWithOffsets(documentContents: string): { line: string; off
3032
*
3133
* @param {Object} options - An object containing optional fields like marks, command, or ide.
3234
* @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.
3537
* @returns {DecorationItem[]} An array of decoration objects.
3638
*/
3739
function createDecorations(
3840
options: {
3941
marks?: SerializedMarks;
40-
command?: any;
41-
ide?: any;
42+
command?: CommandLatest | Command;
43+
ide?: PlainSpyIDERecordedValues;
4244
lines?: string[]
4345
selections?: SelectionPlainObject[]
4446
thatMark?: TargetPlainObject[]
47+
sourceMark?: TargetPlainObject[]
48+
finalStateMarkHelpers?: {
49+
sourceMark?: TargetPlainObject[]
50+
thatMark?: TargetPlainObject[]
51+
}
4552
} = {} // Default to an empty object
4653
): DecorationItem[] {
4754
const { marks, ide, lines, selections, thatMark /* command */ } = options

0 commit comments

Comments
 (0)