mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-03 19:51:53 +00:00
Fixed again - incorrect return type
This commit is contained in:
Vendored
+5
-5
@@ -661,14 +661,14 @@ declare namespace angular {
|
||||
(actual: T, expected: T): boolean;
|
||||
}
|
||||
|
||||
interface IFilterOrderByItem {
|
||||
value: any,
|
||||
interface IFilterOrderByItem<T> {
|
||||
value: T,
|
||||
type: string,
|
||||
index: any
|
||||
}
|
||||
|
||||
interface IFilterOrderByComparatorFunc {
|
||||
(left: IFilterOrderByItem, right: IFilterOrderByItem): [-1, 0, 1];
|
||||
interface IFilterOrderByComparatorFunc<T> {
|
||||
(left: IFilterOrderByItem<T>, right: IFilterOrderByItem<T>): -1 | 0 | 1;
|
||||
}
|
||||
|
||||
interface IFilterCurrency {
|
||||
@@ -756,7 +756,7 @@ declare namespace angular {
|
||||
* @param comparator Function used to determine the relative order of value pairs.
|
||||
* @return An array containing the items from the specified collection, ordered by a comparator function based on the values computed using the expression predicate.
|
||||
*/
|
||||
<T>(array: T[], expression: string|((value: T) => any)|(((value: T) => any)|string)[], reverse?: boolean, comparator?: IFilterOrderByComparatorFunc): T[];
|
||||
<T>(array: T[], expression: string|((value: T) => any)|(((value: T) => any)|string)[], reverse?: boolean, comparator?: IFilterOrderByComparatorFunc<T>): T[];
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user