@wolkabout/commons 0.0.53 → 0.0.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1106,19 +1106,19 @@ declare abstract class StandardListDataSource<ItemType> {
|
|
|
1106
1106
|
|
|
1107
1107
|
interface PartialUpdate<ItemType> {
|
|
1108
1108
|
id: string;
|
|
1109
|
-
update:
|
|
1109
|
+
update: (oldItem: ItemType) => ItemType;
|
|
1110
1110
|
}
|
|
1111
1111
|
declare class StandardListDataControl<ItemType> {
|
|
1112
1112
|
private _changeSelection$;
|
|
1113
1113
|
private _itemUpdated$;
|
|
1114
|
+
private _itemPartiallyUpdated$;
|
|
1114
1115
|
private _itemAdded$;
|
|
1115
1116
|
private _itemRemoved$;
|
|
1116
|
-
private _itemPartiallyUpdated$;
|
|
1117
1117
|
readonly selectItem: (id: string) => void;
|
|
1118
1118
|
readonly updateItem: (item: ItemType) => void;
|
|
1119
|
+
readonly updateItemPartially: (id: string, update: (oldItem: ItemType) => ItemType) => void;
|
|
1119
1120
|
readonly addItem: (item: ItemType) => void;
|
|
1120
1121
|
readonly removeItem: (id: string) => void;
|
|
1121
|
-
readonly updateItemPartially: (id: string, update: Partial<ItemType>) => void;
|
|
1122
1122
|
/**
|
|
1123
1123
|
* Internal event hook. Do not use outside the Standard List Component
|
|
1124
1124
|
*/
|