reflow
reflow copied to clipboard
Implicitly imported React.Node doesn't get converted to React.ReactNode
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)?