UNPKG

react-docgen

Version:

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

6 lines (5 loc) 200 B
import type { NodePath } from '@babel/traverse'; /** * Returns true of the prop is required, according to its type definition */ export default function isRequiredPropType(path: NodePath): boolean;