mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2025-12-13 07:46:10 +00:00
9 lines
244 B
TypeScript
9 lines
244 B
TypeScript
export interface ItemsApi<T> {
|
|
getItems(): Promise<T[]>
|
|
getItem?(id: string): Promise<T>
|
|
createItem?(item: T): Promise<T>
|
|
updateItem?(item: Partial<T>): Promise<T>
|
|
deleteItem?(id: string): Promise<boolean>
|
|
collectionName?: string
|
|
}
|