From 0885988b367ecbf6646424eba493c29e13ce1132 Mon Sep 17 00:00:00 2001 From: Boris Yankov Date: Mon, 8 Oct 2012 23:06:54 +0300 Subject: [PATCH] Backbone definitions improved --- Definitions/backbone.d.ts | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/Definitions/backbone.d.ts b/Definitions/backbone.d.ts index e10175b02..4fbefb418 100644 --- a/Definitions/backbone.d.ts +++ b/Definitions/backbone.d.ts @@ -73,15 +73,11 @@ declare module Backbone { filter(f: (elem: any) => any): Collection; without(...values: any[]): Collection; - ///// 'reduce', 'reduceRight', 'find', - 'detect', 'filter', 'select', 'reject', 'every', 'all', 'some', 'any', - 'include', 'contains', 'invoke', 'max', 'min', 'sortBy', 'sortedIndex', - 'toArray', 'size', 'first', 'initial', 'rest', 'last', 'without', 'indexOf', - 'shuffle', 'lastIndexOf', 'isEmpty', 'groupBy' + ///// 'reduce', 'reduceRight', 'find', 'detect', 'filter', 'select', 'reject', 'every', 'all', 'some', 'any', 'include', 'contains', 'invoke', 'max', 'min', 'sortBy', 'sortedIndex', 'toArray', 'size', 'first', 'initial', 'rest', 'last', 'without', 'indexOf', 'shuffle', 'lastIndexOf', 'isEmpty', 'groupBy' - each(object: any, iterator: (value, key, list?): void, context?: any): any[]; - forEach(object: any, iterator: (value, key, list?): void, context?: any): any[]; - map(object: any, iterator: ObjectIterator, context?: any): any[]; + each(object: any, iterator: (value, key, list?) => void, context?: any): any[]; + forEach(object: any, iterator: (value, key, list?) => void, context?: any): any[]; + map(object: any, iterator: (value, key, list?) => void, context?: any): any[]; add(models, options? ); remove(models, options? ); @@ -93,7 +89,7 @@ declare module Backbone { unshift(model, options? ); shift(options? ); length: number; - comparator; + //comparator; sort(options? ); pluck(attribute); where(attributes);