extract-react-types
extract-react-types copied to clipboard
Feat: Add support for typecasted HOCs (i.e. typecasted memo'd components)
💡 Example use case:
interface CustomComponentType {
<T>(props: ComponentProps<T>): JSX.Element : null;
}
const Component = forwardRef<HTMLElement, ComponentProps>(() => {});
export default memo(Component) as CustomComponentType;