resolveObjectKeysToArray.d.ts 443 B

123456789101112
  1. import type { NodePath } from '@babel/traverse';
  2. export declare function resolveObjectToNameArray(objectPath: NodePath, raw?: boolean): string[] | null;
  3. /**
  4. * Returns an ArrayExpression which contains all the keys resolved from an object
  5. *
  6. * Ignores setters in objects
  7. *
  8. * Returns null in case of
  9. * unresolvable spreads
  10. * computed identifier keys
  11. */
  12. export default function resolveObjectKeysToArray(path: NodePath): string[] | null;