Files
Shifted/node_modules/react-docgen/dist/utils/resolveObjectKeysToArray.d.ts
2026-02-10 01:14:19 +00:00

13 lines
443 B
TypeScript

import type { NodePath } from '@babel/traverse';
export declare function resolveObjectToNameArray(objectPath: NodePath, raw?: boolean): string[] | null;
/**
* Returns an ArrayExpression which contains all the keys resolved from an object
*
* Ignores setters in objects
*
* Returns null in case of
* unresolvable spreads
* computed identifier keys
*/
export default function resolveObjectKeysToArray(path: NodePath): string[] | null;