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
parent 982656bd5a
commit edd162c3d2

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]