For some reason `ReturnType<typeof useListImagesQuery>` isn't working correctly, and destructuring `queryResult` it results in `any`, when the hook is used. I've removed the explicit return typing so that consumers of the hook get correct types.