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

13 lines
453 B
TypeScript

import type { NodePath } from '@babel/traverse';
import type { Node } from '@babel/types';
/**
* Splits a MemberExpression or CallExpression into parts.
* E.g. foo.bar.baz becomes ['foo', 'bar', 'baz']
*/
declare function toArray(path: NodePath<Node | null>): string[];
/**
* Creates a string representation of a member expression.
*/
declare function toString(path: NodePath<Node | null>): string;
export { toString as String, toArray as Array };