mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2025-12-13 07:46:10 +00:00
Make updateItem type partial
This commit is contained in:
parent
a3acf592dd
commit
bc0aa25cd2
2
src/types/ItemsApi.d.ts
vendored
2
src/types/ItemsApi.d.ts
vendored
@ -2,7 +2,7 @@ export interface ItemsApi<T> {
|
||||
getItems(): Promise<T[]>
|
||||
getItem?(id: string): Promise<T>
|
||||
createItem?(item: T): Promise<T>
|
||||
updateItem?(item: T): Promise<T>
|
||||
updateItem?(item: Partial<T>): Promise<T>
|
||||
deleteItem?(id: string): Promise<boolean>
|
||||
collectionName?: string
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user