eslint-plugin-perfectionist
Version:
ESLint plugin for sorting various data such as objects, imports, types, enums, JSX props, etc.
12 lines (11 loc) • 468 B
TypeScript
import { TSESTree } from '@typescript-eslint/types'
/**
* Computes array elements for the given expression.
*
* @param expression - The expression to compute array elements from.
* @returns An array of elements if the expression is an array or a new
* expression, otherwise null.
*/
export declare function computeArrayElements(
expression: TSESTree.ArrayExpression | TSESTree.NewExpression,
): (TSESTree.SpreadElement | TSESTree.Expression | null)[] | null