Skip to content

Commit 6204e9c

Browse files
committed
feat: Update types in shikiComponent
1 parent e86532c commit 6204e9c

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

packages/test-case-component/src/components/shikiComponent.tsx

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,17 @@
1-
export function ShikiComponent({ data }: { data: any }) {
1+
import type { Command, CommandLatest } from "@cursorless/common";
2+
3+
export function ShikiComponent({
4+
data,
5+
}: {
6+
data: {
7+
before: string;
8+
during: string;
9+
after: string;
10+
command: CommandLatest | Command;
11+
};
12+
}) {
13+
const { spokenForm } = data.command;
14+
const { before, during, after } = data;
215
return (
316
<div className="max-w-xl overflow-auto p-4">
417
<div className="p-8">

0 commit comments

Comments
 (0)