update store interface

This commit is contained in:
Mads Rasmussen
2023-11-23 08:51:45 +01:00
parent 795307e6a0
commit 4fb0a1ae63

View File

@@ -1,5 +1,10 @@
export interface UmbStore<T> {
import { Observable } from '@umbraco-cms/backoffice/external/rxjs';
export interface UmbStore<T> extends EventTarget {
append: (item: T) => void;
appendItems: (items: Array<T>) => void;
updateItem: (unique: string, item: Partial<T>) => void;
removeItem: (unique: string) => void;
removeItems: (uniques: Array<string>) => void;
all: () => Observable<Array<T>>;
}