Skip to content

Commit 07dbeb2

Browse files
Copilotna-trium-144
andcommitted
Use imported ReplCommand and ReplOutput types in ChatFormProps
Co-authored-by: na-trium-144 <100704180+na-trium-144@users.noreply.github.com>
1 parent 47ea2ab commit 07dbeb2

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

app/[docs_id]/chatForm.tsx

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,17 @@ import { useChatHistory, type Message } from "../hooks/useChathistory";
88
import useSWR from "swr";
99
import { getQuestionExample } from "../actions/questionExample";
1010
import { getLanguageName } from "../pagesList";
11+
import { ReplCommand, ReplOutput } from "../terminal/repl";
1112

1213
interface ChatFormProps {
1314
documentContent: string;
1415
sectionId: string;
15-
replOutputs: Array<{
16-
command: string;
17-
output: Array<{
18-
type: "stdout" | "stderr" | "error" | "return" | "trace" | "system";
19-
message: string;
20-
}>;
21-
}>;
16+
replOutputs: ReplCommand[];
2217
fileContents: Array<{
2318
name: string;
2419
content: string;
2520
}>;
26-
execResults: Record<string, Array<{
27-
type: "stdout" | "stderr" | "error" | "return" | "trace" | "system";
28-
message: string;
29-
}>>;
21+
execResults: Record<string, ReplOutput[]>;
3022
}
3123

3224
export function ChatForm({ documentContent, sectionId, replOutputs, fileContents, execResults }: ChatFormProps) {

0 commit comments

Comments
 (0)