Skip to content

Commit db4f590

Browse files
fix: lint
1 parent c8f5df9 commit db4f590

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

extensions/cli/src/ui/EditMessageSelector.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
import { Box, Text, useInput } from "ink";
2-
import type { Key } from "ink/build/hooks/use-input.js";
32
import React, { useMemo, useState } from "react";
43

54
import type { ChatHistoryItem } from "../../../../core/index.js";
65

76
import { defaultBoxStyles } from "./styles.js";
87
import { TextBuffer } from "./TextBuffer.js";
98

9+
// Infer the Key type from useInput's callback parameters
10+
type UseInputHandler = Parameters<typeof useInput>[0];
11+
type Key = Parameters<UseInputHandler>[1];
12+
1013
interface EditMessageSelectorProps {
1114
chatHistory: ChatHistoryItem[];
1215
onEdit: (messageIndex: number, newContent: string) => void;

0 commit comments

Comments
 (0)