UNPKG

500 BTypeScriptView Raw
1import type { NodePath } from '@babel/traverse';
2import type { PropTypeDescriptor } from '../Documentation.js';
3/**
4 * Tries to identify the prop type by inspecting the path for known
5 * prop type names. This method doesn't check whether the found type is actually
6 * from React.PropTypes. It simply assumes that a match has the same meaning
7 * as the React.PropTypes one.
8 *
9 * If there is no match, "custom" is returned.
10 */
11export default function getPropType(path: NodePath): PropTypeDescriptor;