Skip to content

Commit 8bd0d65

Browse files
committed
feat: Use @cursorless/common type PositionPlainObject in loadFixture
1 parent 767baea commit 8bd0d65

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { generateHtml, SelectionAnchor } from "./generateHtml";
1+
import type { PositionPlainObject } from "@cursorless/common";
2+
import { generateHtml } from "./generateHtml";
23

34
async function safeGenerateHtml(
45
...args: [stateName: string, ...rest: Parameters<typeof generateHtml>]
@@ -30,8 +31,8 @@ export async function loadFixture(data: any) {
3031
}: {
3132
name: string;
3233
type: string;
33-
start: SelectionAnchor;
34-
end: SelectionAnchor;
34+
start: PositionPlainObject;
35+
end: PositionPlainObject;
3536
}) => ({
3637
name,
3738
type,

0 commit comments

Comments
 (0)