Skip to content

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

Open
@safiranugroho

Description

💡 Example use case:

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

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

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions