UNPKG

443 BTypeScriptView Raw
1import type { NodePath } from '@babel/traverse';
2export 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 */
12export default function resolveObjectKeysToArray(path: NodePath): string[] | null;