From 8126635bd9da76642464287fa31e4e9162b47a40 Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Tue, 27 Sep 2022 22:00:55 -0700 Subject: [PATCH] Add missing type annotation. Caught by newer versions of typescript. --- client/src/hooks/useEventSteam.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/hooks/useEventSteam.ts b/client/src/hooks/useEventSteam.ts index f37c36b6..2c6d7407 100644 --- a/client/src/hooks/useEventSteam.ts +++ b/client/src/hooks/useEventSteam.ts @@ -8,7 +8,7 @@ export const useEventStream = () => { const dispatch = useAppDispatch(); const onMessage = useCallback( - (message) => { + (message: MessageEvent) => { handleStreamedEvents(dispatch, JSON.parse(message.data)); }, [dispatch]