From 5846637747dc13fb469d3e4338939d3e4931f18f Mon Sep 17 00:00:00 2001 From: Maximilian Harz Date: Tue, 4 Feb 2025 19:38:54 +0100 Subject: [PATCH] Improve api type --- src/Components/Map/hooks/useItems.tsx | 2 +- src/types/LayerProps.d.ts | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Components/Map/hooks/useItems.tsx b/src/Components/Map/hooks/useItems.tsx index db174e77..0fb1af78 100644 --- a/src/Components/Map/hooks/useItems.tsx +++ b/src/Components/Map/hooks/useItems.tsx @@ -3,7 +3,7 @@ /* eslint-disable @typescript-eslint/no-empty-function */ /* eslint-disable @typescript-eslint/no-non-null-assertion */ /* eslint-disable @typescript-eslint/restrict-template-expressions */ -/* eslint-disable @typescript-eslint/no-unsafe-assignment */ + /* eslint-disable @typescript-eslint/no-misused-promises */ import { useCallback, useReducer, createContext, useContext, useState } from 'react' import { toast } from 'react-toastify' diff --git a/src/types/LayerProps.d.ts b/src/types/LayerProps.d.ts index fef17678..b41c6231 100644 --- a/src/types/LayerProps.d.ts +++ b/src/types/LayerProps.d.ts @@ -15,8 +15,7 @@ export interface LayerProps { markerShape: string markerDefaultColor: string markerDefaultColor2?: string - // eslint-disable-next-line @typescript-eslint/no-explicit-any - api?: ItemsApi + api?: ItemsApi itemType: ItemType onlyOnePerOwner?: boolean customEditLink?: string