UNPKG

eslint-plugin-perfectionist

Version:

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

12 lines (11 loc) 394 B
import { TSESTree } from '@typescript-eslint/types' /** * Checks whether a node is a function expression or an arrow function * expression. * * @param node - The AST node to check. * @returns Whether the node is a function expression. */ export declare function isFunctionExpression( node: TSESTree.Node | null, ): node is TSESTree.ArrowFunctionExpression | TSESTree.FunctionExpression