mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-04 17:20:09 +00:00
Simplify filterfunction using interface instead of silly type
This commit is contained in:
@@ -220,7 +220,7 @@ mod.filter({
|
||||
name1(foo: any) { return () => {}; },
|
||||
name2: ['foo', (foo: any) => () => {}],
|
||||
});
|
||||
const customStatefulFilter: ng.FilterFunction<(s: string) => number> = (s) => 1;
|
||||
const customStatefulFilter: ng.IFilterFunction = (s) => 1;
|
||||
mod.filter('name', () => customStatefulFilter);
|
||||
mod.filter('name', ['$scope', () => customStatefulFilter]);
|
||||
mod.filter({
|
||||
|
||||
Reference in New Issue
Block a user