(usernameOrId: string)
| 157 | const userKey = (usernameOrId: string) => ["user", usernameOrId]; |
| 158 | |
| 159 | export const user = (usernameOrId: string) => { |
| 160 | return { |
| 161 | queryKey: userKey(usernameOrId), |
| 162 | queryFn: () => API.getUser(usernameOrId), |
| 163 | }; |
| 164 | }; |
| 165 | |
| 166 | export function apiKey(): UseQueryOptions<GenerateAPIKeyResponse> { |
| 167 | return { |
no test coverage detected