From b81c020f0dfaee2276e1f96c9c27966e303c42ba Mon Sep 17 00:00:00 2001 From: Simon Farshid Date: Sun, 30 Jun 2024 20:14:28 -0700 Subject: [PATCH] fix: types for VercelRSCAdapter (#372) --- packages/react-ai-sdk/src/rsc/VercelRSCAdapter.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/react-ai-sdk/src/rsc/VercelRSCAdapter.tsx b/packages/react-ai-sdk/src/rsc/VercelRSCAdapter.tsx index 8937575ca..297431b28 100644 --- a/packages/react-ai-sdk/src/rsc/VercelRSCAdapter.tsx +++ b/packages/react-ai-sdk/src/rsc/VercelRSCAdapter.tsx @@ -9,9 +9,9 @@ type RSCMessageConverter = { type VercelRSCAdapterBase = { messages: T[]; append: (message: AppendMessage) => Promise; - edit?: (message: AppendMessage) => Promise | undefined; - reload?: (parentId: string | null) => Promise | undefined; - convertMessage?: (message: T) => VercelRSCMessage | undefined; + edit?: ((message: AppendMessage) => Promise) | undefined; + reload?: ((parentId: string | null) => Promise) | undefined; + convertMessage?: ((message: T) => VercelRSCMessage) | undefined; }; export type VercelRSCAdapter = VercelRSCAdapterBase &