mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +03:00
Fix type issues (#4176)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user