Improve complement definition

This commit is contained in:
David Philipson
2017-06-22 18:05:21 -07:00
committed by GitHub
parent d4bdb400a0
commit 45f22ec21e

View File

@@ -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.