How can I create a generic type of queries? Say I want to pass a prop through to a component such as this:
dayBookQuery: (opts: DayBookOptionProps) => SWRResponse<SupabaseManyRowResult<T>, PostgrestError>;
I am getting a type error on the 'count' value that's returned from the query, any idea how I would type this properly so that count isn't giving me errors or if there is a better way to generic type a query?