When using both the script and online tool, if I use a file with destructured prop-types the types that get generated are unknown.
For example:
import { bool, string } from 'prop-types'
...
Component.propTypes = { isDisabled: bool, name: string }
will generate
interface ComponentProps {
isDisabled?: unknown;
name?: unknown;
}
When using both the script and online tool, if I use a file with destructured prop-types the types that get generated are
unknown.For example:
will generate