Skip to content

Commit 47c1dd7

Browse files
committed
Refactor type imports in parseAssistantMessage.ts for clarity
1 parent 1d97e1f commit 47c1dd7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import { StreamingParser } from "./directives/StreamingParser"
2+
import type { Directive } from "./directives"
23

34
// Re-export types for backward compatibility
45
export type { TextDirective, ToolDirective, Directive } from "./directives"
56

67
// Backward compatibility alias
7-
export type AssistantMessageContent = import("./directives").Directive
8+
export type AssistantMessageContent = Directive
89

9-
export function parseAssistantMessage(assistantMessage: string): import("./directives").Directive[] {
10+
export function parseAssistantMessage(assistantMessage: string): Directive[] {
1011
return StreamingParser.parse(assistantMessage)
1112
}

0 commit comments

Comments
 (0)