Add missing type annotation.

Caught by newer versions of typescript.
This commit is contained in:
Dan Albert
2022-09-27 22:00:55 -07:00
committed by Raffson
parent 8ff943552b
commit 8126635bd9

View File

@@ -8,7 +8,7 @@ export const useEventStream = () => {
const dispatch = useAppDispatch();
const onMessage = useCallback(
(message) => {
(message: MessageEvent) => {
handleStreamedEvents(dispatch, JSON.parse(message.data));
},
[dispatch]