You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IFilterFunc in angular.d.ts appears to require an array as the first parameter and it also specifies that the return type is the same as the input type. However, it is possible for the first parameter to not be an array and the output type may be different than the input type.
See this plnkr for an example of a single number being used as input and the return type of the filter function being a string.
Activity
albv commentedon Sep 21, 2015
+1, now IFilterFunc interface is good for 'filter' filter only https://code.angularjs.org/1.4.2/docs/api/ng/filter/filter
AngularJS - Fix DefinitelyTyped#5931
use-strict commentedon Sep 22, 2015
Already created fix in #5948
use-strict commentedon Oct 15, 2015
Can someone close this? :)
vvakame commentedon Oct 16, 2015
thanks!