react-docgen
Version:
A library to extract information from React components for documentation generation.
12 lines (11 loc) • 345 B
TypeScript
import type { NodePath } from '@babel/traverse';
/**
* Returns an ArrayExpression which contains all the values resolved from an object
*
* Ignores setters in objects
*
* Returns null in case of
* unresolvable spreads
* computed identifier values
*/
export default function resolveObjectValuesToArray(path: NodePath): string[] | null;