Skip to content

Commit bd59788

Browse files
Backport: fix(ai): minor type fix (#8921)
This is an automated backport of #8918 to the release-v5.0 branch. Co-authored-by: Gregor Martynus <[email protected]>
1 parent 79741ab commit bd59788

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/ai/src/ui/chat.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ export abstract class AbstractChat<UI_MESSAGE extends UIMessage> {
458458
state,
459459
output,
460460
errorText,
461-
} as ToolUIPart<InferUIMessageTools<UI_MESSAGE>>)
461+
} as typeof part)
462462
: part,
463463
);
464464
}

0 commit comments

Comments
 (0)