Missing function declaration for knockout.

The destroy(function() {...}) was missing inside knockout declarations.
This commit is contained in:
Clément Bourgeois 2014-11-06 18:10:44 +01:00
parent b9b6d6b3d5
commit e0ffa8d04d

View File

@ -1,6 +1,6 @@
// Type definitions for Knockout v3.2.0-beta
// Project: http://knockoutjs.com
// Definitions by: Boris Yankov <https://github.com/borisyankov/>, Igor Oleinikov <https://github.com/Igorbek/>
// Definitions by: Boris Yankov <https://github.com/borisyankov/>, Igor Oleinikov <https://github.com/Igorbek/>, Clément Bourgeois <https://github.com/moonpyk/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
@ -38,6 +38,7 @@ interface KnockoutObservableArrayFunctions<T> {
removeAll(): T[];
destroy(item: T): void;
destroy(destroyFunction: (item: T) => boolean): void;
destroyAll(items: T[]): void;
destroyAll(): void;
}