Skip to content

Register prop-types when set through Flow SuperTypeParameters#1236

Merged
ljharb merged 1 commit intojsx-eslint:masterfrom
gpeal:gpeal--prop-types
Jun 8, 2017
Merged

Register prop-types when set through Flow SuperTypeParameters#1236
ljharb merged 1 commit intojsx-eslint:masterfrom
gpeal:gpeal--prop-types

Conversation

@gpeal
Copy link
Copy Markdown
Contributor

@gpeal gpeal commented Jun 2, 2017

This picks up prop types when set using flow SuperTypeParameters such as:

type Props = { /* ... */ };

class MyComponent extends React.Component<void, Props, void> {
  ...
}

@ljharb This is modified from the property annotation checks. However, I couldn't test the wrapped TypeAnnotation or NullableTypeAnnotation resolution checks.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants