UNPKG

react-docgen

Version:

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

10 lines (9 loc) 273 B
/** * Returns true of the path is an unreachable TypePath * This evaluates the NodePaths returned from resolveToValue */ export default (path) => { return (path.isIdentifier() || path.parentPath?.isImportDeclaration() || path.isCallExpression()); };