mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2025-12-13 07:46:10 +00:00
Improve typing of itemsApi
This commit is contained in:
parent
0ec0f13c74
commit
a559132671
@ -82,7 +82,6 @@ function useItemsManager(initialItems: Item[]): {
|
||||
},
|
||||
})
|
||||
result.map((item) => {
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
||||
dispatch({ type: 'ADD', item: { ...item, layer } })
|
||||
return null
|
||||
})
|
||||
|
||||
3
src/types/LayerProps.d.ts
vendored
3
src/types/LayerProps.d.ts
vendored
@ -18,8 +18,7 @@ export interface LayerProps {
|
||||
markerShape: string
|
||||
markerDefaultColor: string
|
||||
markerDefaultColor2?: string
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
api?: ItemsApi<any>
|
||||
api?: ItemsApi<Item>
|
||||
itemType: ItemType
|
||||
userProfileLayer?: boolean
|
||||
customEditLink?: string
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user