@@ -146,7 +146,7 @@ export declare interface CollectionObserver {
146146 * The change record of a collection mutation.
147147 */
148148export declare interface ICollectionObserverSplice < T = any > {
149-
149+ /* ArrayObserverSplice */
150150 /**
151151 * Number of items added to the collection.
152152 */
@@ -161,6 +161,33 @@ export declare interface ICollectionObserverSplice<T = any> {
161161 * A collection of items that were removed from the collection.
162162 */
163163 removed : Array < T > ;
164+ /* End ArrayObserverSplice */
165+
166+ /**
167+ * The observed Set or Map after the change.
168+ */
169+ object : Set < T > | Map < K , V > ;
170+
171+ /**
172+ * The value of the Map item prior to the change.
173+ */
174+ oldValue : V ;
175+
176+ /**
177+ * The key of the Map item that was changed.
178+ */
179+ key : K ;
180+
181+ /**
182+ * The Set value that was either added or removed.
183+ */
184+ value : T ;
185+
186+ /**
187+ * The type of change that has taken place. Valid options are "add", "delete", and "update".
188+ * "update" is invalid for Set.
189+ */
190+ type : "add" | "delete" | "update" ;
164191}
165192
166193/**
@@ -779,7 +806,7 @@ export declare class BindingEngine {
779806 /**
780807 * Gets an observer for collection mutation.
781808 */
782- collectionObserver ( collection : Array < any > | Map < any , any > ) : CollectionObserver ;
809+ collectionObserver ( collection : Array < any > | Map < any , any > | Set < any > ) : CollectionObserver ;
783810 /**
784811 * Gets an observer for a javascript expression that accesses a property on the binding context.
785812 * @param bindingContext The binding context (view-model)
0 commit comments