We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eb100c0 commit 75a0e92Copy full SHA for 75a0e92
cli/src/components/message-footer.tsx
@@ -13,7 +13,7 @@ import {
13
selectMessageFeedbackCategory,
14
} from '../state/feedback-store'
15
16
-import type { ContentBlock } from '../types/chat'
+import type { ContentBlock, TextContentBlock } from '../types/chat'
17
18
interface MessageFooterProps {
19
messageId: string
@@ -116,7 +116,7 @@ export const MessageFooter: React.FC<MessageFooterProps> = ({
116
const textToCopy = [
117
content,
118
...(blocks || [])
119
- .filter((b): b is import('../types/chat').TextContentBlock => b.type === 'text')
+ .filter((b): b is TextContentBlock => b.type === 'text')
120
.map((b) => b.content),
121
]
122
.filter(Boolean)
0 commit comments