Skip to content

Commit

Permalink
Updated the ResponseRenderer<AiMsg> interface
Browse files Browse the repository at this point in the history
  • Loading branch information
salmenus committed Jun 4, 2024
1 parent a2690da commit a70e1ad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/react/core/src/exports/messageOptions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ export type BatchResponseComponentProps<AiMsg> = {
serverResponse: unknown;
};

export type ResponseRenderer<AiMsg> = FC<StreamResponseComponentProps<AiMsg>> | FC<BatchResponseComponentProps<AiMsg>>;
export type ResponseRenderer<AiMsg> = FC<
StreamResponseComponentProps<AiMsg> | BatchResponseComponentProps<AiMsg>
>;

export type PromptRendererProps = {
uid: string;
Expand Down

0 comments on commit a70e1ad

Please sign in to comment.