mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Merge pull request #3405 from dcrusader/patch-1
Knockout mapping observable array functions
This commit is contained in:
+14
@@ -43,6 +43,20 @@ interface KnockoutMapping {
|
||||
visitModel(rootObject: any, callback: Function, options?: { visitedObjects?: any; parentName?: string; ignore?: string[]; copy?: string[]; include?: string[]; }): any;
|
||||
}
|
||||
|
||||
interface KnockoutObservableArrayFunctions<T> {
|
||||
mappedCreate(item: T): T;
|
||||
|
||||
mappedRemove(item: T): T[];
|
||||
mappedRemove(removeFunction: (item: T) => boolean): T[];
|
||||
mappedRemoveAll(items: T[]): T[];
|
||||
mappedRemoveAll(): T[];
|
||||
|
||||
mappedDestroy(item: T): void;
|
||||
mappedDestroy(destroyFunction: (item: T) => boolean): void;
|
||||
mappedDestroyAll(items: T[]): void;
|
||||
mappedDestroyAll(): void;
|
||||
}
|
||||
|
||||
interface KnockoutStatic {
|
||||
mapping: KnockoutMapping;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user