Skip to content

Flow 0.53 prop types #1376

Closed
Closed

Description

Hi,

with the latest Flow@0.53 the Type detection for prop types is broken.

Before

import React from 'react';

type Props = {
  foo: string,
};

class Bar extends React.Component {
  props: Props;
}

After

import * as React from 'react';

type Props = {
  foo: string,
};

class Bar extends React.Component<Props> {}
'foo' is missing in props validation (react/prop-type)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions