From ea80e6e94c195ba2b17b9971f20f985fd08f30be Mon Sep 17 00:00:00 2001 From: Maximilian Harz Date: Fri, 31 Jan 2025 23:51:18 +0100 Subject: [PATCH] Use better type name for tag ids --- src/types/Item.d.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/types/Item.d.ts b/src/types/Item.d.ts index b206cd20..880cc9fc 100644 --- a/src/types/Item.d.ts +++ b/src/types/Item.d.ts @@ -5,9 +5,7 @@ import type { Relation } from './Relation' import type { UserItem } from './UserItem' import type { Point } from 'geojson' -interface Special_Find_Name { - tags_id: string -} +type TagIds = { tags_id: string }[] export interface Item { id: string @@ -31,8 +29,8 @@ export interface Item { user_created?: UserItem image?: string group_type?: string - offers?: Special_Find_Name[] - needs?: Special_Find_Name[] + offers?: TagIds + needs?: TagIds status?: string color?: string markerIcon?: string