@@ -186,7 +186,7 @@ Use the Collection Observer to observe changes to a collection. Collection types
186186 }
187187 </source-code >
188188 <source-code lang =" TypeScript " >
189- import {BindingEngine, autoinject, IArrayObserverSplice } from 'aurelia-framework';
189+ import {BindingEngine, autoinject, ICollectionObserverSplice } from 'aurelia-framework';
190190
191191 @autoinject
192192 export class App {
@@ -198,7 +198,7 @@ Use the Collection Observer to observe changes to a collection. Collection types
198198 .subscribe(this.collectionChanged.bind(this));
199199 }
200200
201- collectionChanged(splices: Array<IArrayObserverSplice <string>>) {
201+ collectionChanged(splices: Array<ICollectionObserverSplice <string>>) {
202202 // This will fire any time the collection is modified.
203203 }
204204 }
@@ -227,9 +227,9 @@ The callback will receive an array of splices which provides information about t
227227 }
228228 </source-code >
229229 <source-code lang =" TypeScript " >
230- collectionChanged(splices: Array<IArrayObserverSplice <string>>) {
230+ collectionChanged(splices: Array<ICollectionObserverSplice <string>>) {
231231 for (var i = 0; i < splices.length; i++) {
232- var splice: IArrayObserverSplice <string> = splices[i];
232+ var splice: ICollectionObserverSplice <string> = splices[i];
233233
234234 var valuesAdded = this.myCollection.slice(splice.index, splice.index + splice.addedCount);
235235 if (valuesAdded.length > 0) {
@@ -270,9 +270,9 @@ The callback will receive an array of splices which provides information about t
270270 }
271271 </source-code >
272272 <source-code lang =" TypeScript " >
273- collectionChanged(splices: Array<IMapObserverSplice< number, string>>) {
273+ collectionChanged(splices: Array<ICollectionObserverSplice<Map< number, string> >>) {
274274 for (var i = 0; i < splices.length; i++) {
275- var splice: IMapObserverSplice< number, string> = splices[i];
275+ var splice: ICollectionObserverSplice<Map< number, string> > = splices[i];
276276
277277 if(splice.type == "add"){
278278 var valuesAdded = this.myCollection.get(splice.key);
@@ -312,9 +312,9 @@ The callback will receive an array of splices which provides information about t
312312 }
313313 </source-code >
314314 <source-code lang =" TypeScript " >
315- collectionChanged(splices: Array<ISetObserverSplice< number>>) {
315+ collectionChanged(splices: Array<ICollectionObserverSplice<Set< number> >>) {
316316 for (var i = 0; i < splices.length; i++) {
317- var splice: ISetObserverSplice< number> = splices[i];
317+ var splice: ICollectionObserverSplice<Set< number> > = splices[i];
318318
319319 if(splice.type == "add"){
320320 console.log(`'${splice.value}' was added to the set`);
0 commit comments