Make updateItem type partial

This commit is contained in:
Maximilian Harz 2025-02-04 19:58:58 +01:00
parent a3acf592dd
commit bc0aa25cd2

View File

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