UNPKG

eslint-plugin-perfectionist

Version:

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

8 lines (7 loc) 252 B
/** * Checks if a node is sortable (i.e., an array with more than one element). * * @param node - The node to check. * @returns True if the node is sortable, false otherwise. */ export declare function isSortable(node: unknown): node is unknown[]