Skip to content

Idea: Prop type skip #153

Description

@danieldelcore

In some cases where a component's props are obscured by higher order components we should to define an override so that ERT can still access the relevant props of the component

My idea is a comment override:

/** @ert-override Props */ 

// 👆 this statement tells ERT which props to access 

interface Props {
  bar: string;
}

const MyComponent: FC<Props> = props => null;

export default withBadHOC(withAnotherHOC(MyComponent)); // 💥 ERT is unable to grab these props because they're obscured by this HOC

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions