Merge pull request #6037 from eugenpodaru/master

Fix to IFilterPredicateFunc<T>
This commit is contained in:
Masahiro Wakame
2015-10-06 21:11:09 +09:00
2 changed files with 3 additions and 3 deletions

View File

@@ -952,10 +952,10 @@ function ngFilterTyping() {
$filter("name")(items, "test");
$filter("name")(items, {name: "test"});
$filter("name")(items, (val, index, array) => {
return array;
return true;
});
$filter("name")(items, (val, index, array) => {
return array;
return true;
}, (actual, expected) => {
return actual == expected;
});

View File

@@ -794,7 +794,7 @@ declare module angular {
}
interface IFilterPredicateFunc<T> {
(value: T, index: number, array: T[]): T[];
(value: T, index: number, array: T[]): boolean;
}
interface IFilterComparatorFunc<T> {