From 03222b7c8ae2f5d2fad8b38d18c2024d9dc1ce65 Mon Sep 17 00:00:00 2001 From: Niels Bosman Date: Tue, 17 Oct 2023 20:17:23 +0200 Subject: [PATCH] chore: update type --- src/hooks/useChatStream.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/useChatStream.ts b/src/hooks/useChatStream.ts index 2cc570d..9bee435 100644 --- a/src/hooks/useChatStream.ts +++ b/src/hooks/useChatStream.ts @@ -18,7 +18,7 @@ type UseChatStreamResult = { input: string; setInput: Dispatch>; handleInputChange: (event: ChangeEvent) => void; - handleSubmit: (event?: FormEvent) => void; + handleSubmit: (event?: FormEvent, newMessage?: string) => void; isLoading: boolean; }