mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 12:56:46 +08:00
Added slice to Backbone.Collection
Without it, TypeScript throws a type error, stating that `Collection<TModel>` does not have a method called `slice`.
This commit is contained in:
1
backbone/backbone.d.ts
vendored
1
backbone/backbone.d.ts
vendored
@@ -247,6 +247,7 @@ declare module Backbone {
|
||||
select(iterator: any, context?: any): any[];
|
||||
size(): number;
|
||||
shuffle(): any[];
|
||||
slice(min: number, max?: number): TModel[];
|
||||
some(iterator: (element: TModel, index: number) => boolean, context?: any): boolean;
|
||||
sortBy(iterator: (element: TModel, index: number) => number, context?: any): TModel[];
|
||||
sortBy(attribute: string, context?: any): TModel[];
|
||||
|
||||
Reference in New Issue
Block a user