UNPKG

eslint-plugin-de-morgan

Version:

ESLint plugin for transforming negated boolean expressions via De Morgan’s laws

9 lines (8 loc) 327 B
import { UnaryExpression, Node } from 'estree' /** * Checks whether the given expression is a UnaryExpression with operator '!'. * * @param node - The AST node to check. * @returns True if the node is a UnaryExpression with operator '!'. */ export declare function hasNegationOperator(node: Node): node is UnaryExpression