Permalink
Browse files

fix(typings): Correct ICollectionObserverSplice generics

  • Loading branch information...
alienriver49 committed Nov 27, 2018
1 parent f78529b commit 52ca954144e5796eefb5df83d24af2d4015fcc38
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/aurelia-binding.d.ts
@@ -145,7 +145,7 @@ export declare interface CollectionObserver {
/**
* The change record of a collection mutation.
*/
export declare interface ICollectionObserverSplice<T = any> {
export declare interface ICollectionObserverSplice<T = any, K = any> {
/* ArrayObserverSplice */
/**
* Number of items added to the collection.
@@ -166,12 +166,12 @@ export declare interface ICollectionObserverSplice<T = any> {
/**
* The observed Set or Map after the change.
*/
object: Set<T> | Map<K, V>;
object: Set<T> | Map<K, T>;

/**
* The value of the Map item prior to the change.
*/
oldValue: V;
oldValue: T;

/**
* The key of the Map item that was changed.

0 comments on commit 52ca954

Please sign in to comment.