Permalink
Browse files

fix(typings): Revert exposing some APIs, add reset param typing

  • Loading branch information...
alienriver49 committed Nov 29, 2018
1 parent 133edc3 commit 1aa9c43355a454579ae7f522969028979f616808
Showing with 3 additions and 14 deletions.
  1. +3 −14 src/aurelia-binding.d.ts
@@ -184,13 +184,11 @@ export declare interface ICollectionObserverSplice<T = any, K = any> {
value: T;

/**
* The type of change that has taken place. Valid options are "splice", "add", "delete", "update", and "clear".
*
* *Note:* "splice" is only valid for Array; "add", "update", and "clear" are invalid for Array.
* The type of change that has taken place. Valid options are "add", "delete", and "update".
*
* *Note:* "update" is invalid for Set.
*/
type: "splice" | "add" | "delete" | "update" | "clear";
type: "add" | "delete" | "update";
}

/**
@@ -512,11 +510,6 @@ export declare interface InternalCollectionObserver {
* @param callable A callable object.
*/
unsubscribe(context: any, callable: Callable): void;
/**
* Adds a change record to the collection observer.
* @param changeRecord
*/
addChangeRecord(changeRecord: ICollectionObserverSplice): void;
/**
* This will flush the change records of this observer and call any subscribers if applicable.
*/
@@ -525,15 +518,11 @@ export declare interface InternalCollectionObserver {
* Reset the observer to the passed collection and call any subscribers with changes between the current collection and the reset collection.
* @param oldCollection
*/
reset(oldCollection): void;
reset(oldCollection: any[] | Set<any> | Map<any, any>): void;
/**
* Get a length observer for this collection.
*/
getLengthObserver(): any;
/**
* This will call subscribers notifying of changed records.
*/
call(): void;
}

/**

0 comments on commit 1aa9c43

Please sign in to comment.