UNPKG

react-docgen

Version:

A library to extract information from React components for documentation generation.

8 lines (7 loc) 333 B
import type { NodePath } from '@babel/traverse'; import type { ObjectProperty } from '@babel/types'; /** * Resolve and ObjectProperty inside an ObjectPattern to its value if possible * If not found `null` is returned */ export default function resolveObjectPatternPropertyToValue(path: NodePath<ObjectProperty>): NodePath | null;