Fix type issues (#4176)

This commit is contained in:
InfiniteStash
2023-10-16 05:34:54 +02:00
committed by GitHub
parent 90dfaf668b
commit 409f8fc70c
17 changed files with 41 additions and 86 deletions

View File

@@ -838,8 +838,7 @@ export const useImagesDestroy = (input: GQL.ImagesDestroyInput) =>
function updateImageIncrementO(id: string) {
return (
// eslint-disable-next-line @typescript-eslint/no-explicit-any
cache: ApolloCache<any>,
cache: ApolloCache<Record<string, StoreObject>>,
result: FetchResult<GQL.ImageIncrementOMutation>
) => {
const updatedOCount = result.data?.imageIncrementO;
@@ -893,8 +892,7 @@ export const mutateImageIncrementO = (id: string) =>
function updateImageDecrementO(id: string) {
return (
// eslint-disable-next-line @typescript-eslint/no-explicit-any
cache: ApolloCache<any>,
cache: ApolloCache<Record<string, StoreObject>>,
result: FetchResult<GQL.ImageDecrementOMutation>
) => {
const updatedOCount = result.data?.imageDecrementO;
@@ -949,8 +947,7 @@ export const mutateImageDecrementO = (id: string) =>
function updateImageResetO(id: string) {
return (
// eslint-disable-next-line @typescript-eslint/no-explicit-any
cache: ApolloCache<any>,
cache: ApolloCache<Record<string, StoreObject>>,
result: FetchResult<GQL.ImageResetOMutation>
) => {
const updatedOCount = result.data?.imageResetO;