update store interface
This commit is contained in:
@@ -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>>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user