Skip to content

Commit

Permalink
fix: isRunning should be optional (#588)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yonom authored Jul 27, 2024
1 parent 46b45b5 commit b1fbf79
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/react-ai-sdk/src/rsc/VercelRSCAdapter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ type RSCMessageConverter<T> = {
};

type VercelRSCAdapterBase<T> = {
isRunning: boolean;
isRunning?: boolean | undefined;
messages: T[];

onNew?: (message: AppendMessage) => Promise<void>;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ type ExternalStoreMessageConverterAdapter<T> = {
};

type ExternalStoreAdapterBase<T> = {
threadId?: string;
isRunning?: boolean;
threadId?: string | undefined;
isRunning?: boolean | undefined;
messages: T[];
setMessages?: ((messages: T[]) => void) | undefined;
onNew: (message: AppendMessage) => Promise<void>;
Expand Down

0 comments on commit b1fbf79

Please sign in to comment.