mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 23:10:29 +00:00
Merge pull request #6037 from eugenpodaru/master
Fix to IFilterPredicateFunc<T>
This commit is contained in:
@@ -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;
|
||||
});
|
||||
|
||||
Vendored
+1
-1
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user