reflow icon indicating copy to clipboard operation
reflow copied to clipboard

Implicitly imported React.Node doesn't get converted to React.ReactNode

Open jnv opened this issue 5 years ago • 0 comments

As you may have guessed, I am trying to convert fairly large codebase from Flow to TS. 😉

In the original codebase React types are used like this:

import * as React from 'react'

type Props = {
  children: React.Node,
}

The equivalent TS type is React.ReactNode, but it doesn't get converted. I have noticed that the current tests cover explicit import of types (e.g. here), but not implicit imports.

Do you think this is something you would like to include in this project (considering it is safe enough conversion)?

jnv avatar Feb 27 '20 15:02 jnv