mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2025-12-13 07:46:10 +00:00
- Separated types and moved them into the proper ./types folder defined in the tsconfig.json. - Defined a new folder alias `#types`. - New eslint rule to enforce `import type` when a type is imported. - Removed Geometry Class and used manual Point types from `geojson`
43 lines
1.2 KiB
TypeScript
43 lines
1.2 KiB
TypeScript
import type { Item } from './Item'
|
|
import type { ItemFormPopupProps } from './ItemFormPopupProps'
|
|
import type { ItemsApi } from './ItemsApi'
|
|
import type { ItemType } from './ItemType'
|
|
|
|
export interface LayerProps {
|
|
id?: string
|
|
data?: Item[]
|
|
children?: React.ReactNode
|
|
name: string
|
|
menuIcon: string
|
|
menuColor: string
|
|
menuText: string
|
|
markerIcon: string
|
|
markerShape: string
|
|
markerDefaultColor: string
|
|
markerDefaultColor2?: string
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
api?: ItemsApi<any>
|
|
itemType: ItemType
|
|
itemNameField?: string
|
|
itemSubnameField?: string
|
|
itemTextField?: string
|
|
itemAvatarField?: string
|
|
itemColorField?: string
|
|
itemOwnerField?: string
|
|
itemTagsField?: string
|
|
itemLatitudeField?: string
|
|
itemLongitudeField?: string
|
|
itemOffersField?: string
|
|
itemNeedsField?: string
|
|
onlyOnePerOwner?: boolean
|
|
customEditLink?: string
|
|
customEditParameter?: string
|
|
public_edit_items?: boolean
|
|
listed?: boolean
|
|
item_presets?: Record<string, unknown>
|
|
setItemFormPopup?: React.Dispatch<React.SetStateAction<ItemFormPopupProps | null>>
|
|
itemFormPopup?: ItemFormPopupProps | null
|
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
clusterRef?: any
|
|
}
|