Use better type name for tag ids

This commit is contained in:
Maximilian Harz 2025-01-31 23:51:18 +01:00
parent 7f4594ad53
commit ea80e6e94c

8
src/types/Item.d.ts vendored
View File

@ -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