MCPcopy Create free account
hub / github.com/donghaxkim/react-rewrite / JSXStructuralPath

Interface JSXStructuralPath

packages/shared/src/types.ts:21–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19
20/** Structural path to a JSX element within a single file's component. */
21export interface JSXStructuralPath {
22 /** The component function name that contains this element */
23 componentName: string;
24 /** Source file path (relative to project root) */
25 filePath: string;
26 /** Ordered segments from component render root down to target element */
27 segments: JSXPathSegment[];
28}
29
30export interface TextEditAnchor {
31 /** Start offset of the changed range in the original rendered text */

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected