Skip to content

Commit 75a0e92

Browse files
committed
refactor: replace inline import with proper type import in message-footer
1 parent eb100c0 commit 75a0e92

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cli/src/components/message-footer.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
selectMessageFeedbackCategory,
1414
} from '../state/feedback-store'
1515

16-
import type { ContentBlock } from '../types/chat'
16+
import type { ContentBlock, TextContentBlock } from '../types/chat'
1717

1818
interface MessageFooterProps {
1919
messageId: string
@@ -116,7 +116,7 @@ export const MessageFooter: React.FC<MessageFooterProps> = ({
116116
const textToCopy = [
117117
content,
118118
...(blocks || [])
119-
.filter((b): b is import('../types/chat').TextContentBlock => b.type === 'text')
119+
.filter((b): b is TextContentBlock => b.type === 'text')
120120
.map((b) => b.content),
121121
]
122122
.filter(Boolean)

0 commit comments

Comments
 (0)