UNPKG

eslint-plugin-perfectionist

Version:

ESLint plugin for sorting various data such as objects, imports, types, enums, JSX props, etc.

12 lines (11 loc) 409 B
import { TSESTree } from '@typescript-eslint/types' /** * Checks whether a node is a PropertyDefinition or AccessorProperty. * * @param node - The AST node to check. * @returns True if the node is a PropertyDefinition or AccessorProperty, false * otherwise. */ export declare function isPropertyOrAccessorNode( node: TSESTree.Node, ): node is TSESTree.PropertyDefinition | TSESTree.AccessorProperty