eslint-plugin-de-morgan
Version:
ESLint plugin for transforming negated boolean expressions via De Morgan’s laws
10 lines (9 loc) • 392 B
TypeScript
import { UnaryExpression, Node } from 'estree'
/**
* Checks whether the given AST node is a UnaryExpression. This type guard
* function verifies if the provided node is of type 'UnaryExpression'.
*
* @param node - The AST node to check.
* @returns True if the node is a UnaryExpression, false otherwise.
*/
export declare function isUnaryExpression(node: Node): node is UnaryExpression