Skip to content

Commit 9f98239

Browse files
committed
refactor: replace local ClineMessage and TaskHistoryItem interfaces with imported types
1 parent cdea909 commit 9f98239

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

webview-ui/src/components/chat/hooks/usePromptHistory.ts

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,9 @@
1+
import { ClineMessage, HistoryItem } from "@roo-code/types"
12
import { useCallback, useEffect, useMemo, useState } from "react"
23

3-
interface ClineMessage {
4-
type: "say" | "ask"
5-
say?: string
6-
ask?: string
7-
ts: number
8-
text?: string
9-
}
10-
11-
interface TaskHistoryItem {
12-
task: string
13-
workspace?: string
14-
}
15-
164
interface UsePromptHistoryProps {
175
clineMessages: ClineMessage[] | undefined
18-
taskHistory: TaskHistoryItem[] | undefined
6+
taskHistory: HistoryItem[] | undefined
197
cwd: string | undefined
208
inputValue: string
219
setInputValue: (value: string) => void

0 commit comments

Comments
 (0)