Skip to content

Commit

Permalink
fix(typings): Correct ICollectionObserverSplice generics
Browse files Browse the repository at this point in the history
  • Loading branch information
alienriver49 committed Nov 27, 2018
1 parent f78529b commit 52ca954
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/aurelia-binding.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand Down

0 comments on commit 52ca954

Please sign in to comment.