eslint-plugin-de-morgan
Version:
ESLint plugin for transforming negated boolean expressions via De Morgan’s laws
11 lines (10 loc) • 362 B
TypeScript
/**
* Negates the result of the given predicate function.
*
* @param predicate - A function that takes any number of arguments and returns
* a boolean.
* @returns A function that negates the boolean result of the predicate.
*/
export declare function not<T extends unknown[]>(
predicate: (...arguments_: T) => boolean,
): (...arguments_: T) => boolean