Repository navigation
angularjs - better granularity for filter service parameter types - #5814
Conversation
angularjs - better granularity for filter service parameter types
|
@use-strict thanks mate! |
|
@vvakame this commit broke support for all filters except 'filter' (https://code.angularjs.org/1.4.2/docs/api/ng/filter/filter), consider https://code.angularjs.org/1.4.2/docs/api/ng/filter/date for example. I think there is no way to establish a strict interface for IFilterFunc, it could be anything. |
|
@albv , I'll have a fix for this tomorrow. Can be solved with overloads to cover all filter types. |
|
Please revert this. It breaks string filters |
|
wasn't aware that TypeScript allows overloads by argument values, nice trick @use-strict, thanks |
|
@albv @use-strict from the typescript docs regarding how overload call signatures work:
|
No description provided.