(query: CreateQueryResult<T>)
| 164 | |
| 165 | it('supports reading data from a generic result type', () => { |
| 166 | const readId = <T extends { id: number }>(query: CreateQueryResult<T>) => |
| 167 | query.data()?.id |
| 168 | |
| 169 | expectTypeOf(readId).toBeCallableWith( |
| 170 | {} as CreateQueryResult<{ id: number }>, |
nothing calls this directly
no outgoing calls
no test coverage detected