What is the best way to infer a type when using the t3 stack from an api call? React Query docs mention the use of Generics but i cant wrap my head around it. More specifically, i want to return an array of the Event Custom Datatype i have defined from the db but i get a type error Event[] is not assignable to type (type structure here). The weird thing data fetching works ok on the frontend. Any resources that would be useful looking into would be greatly appreciated. Thanks!