queryClient.setQueryData type is not correct

Hello, I’m attempting to perform a setQueryData<Todo>([‘todos’], (todo) => …
Update by watching the video. For some reason however my todo type is InfiniteData<ToDo> and it has a pages and pageParams props. I set my new todos to
[savedToDo, …todos.pages] but it does not seem to work. Has anyone else ran into this issue where the type is and InfiniteData and not ToDo?