UNPKG

329 BTypeScriptView Raw
1import type { NodePath } from '@babel/traverse';
2/**
3 * Given an React component (stateless or class) tries to find the
4 * flow or ts type for the props. If not found or not one of the supported
5 * component types returns undefined.
6 */
7export default function resolveGenericTypeAnnotation(path: NodePath): NodePath | undefined;