mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-26 00:21:41 +08:00
Improve complement definition
This commit is contained in:
2
types/transducers-js/index.d.ts
vendored
2
types/transducers-js/index.d.ts
vendored
@@ -47,7 +47,7 @@ export function comp(...args: Array<(x: any) => any>): (x: any) => any;
|
||||
/**
|
||||
* Take a predicate function and return its complement.
|
||||
*/
|
||||
export function complement(f: Function): Function;
|
||||
export function complement<T>(f: (x: T) => boolean): (x: T) => boolean;
|
||||
|
||||
/**
|
||||
* Identity function.
|
||||
|
||||
Reference in New Issue
Block a user