extract-react-types icon indicating copy to clipboard operation
extract-react-types copied to clipboard

Feat: Add support for typecasted HOCs (i.e. typecasted memo'd components)

Open safiranugroho opened this issue 4 years ago • 0 comments

💡 Example use case:

interface CustomComponentType {
    <T>(props: ComponentProps<T>): JSX.Element : null;
}

const Component = forwardRef<HTMLElement, ComponentProps>(() => {});
export default memo(Component) as CustomComponentType;

safiranugroho avatar Mar 08 '21 04:03 safiranugroho