Closed TidyIQ closed 4 years ago
I've also tried the following which still doesn't work:
[
'babel-plugin-typescript-to-proptypes',
{
implicitChildren: true,
typeCheck: true,
maxSize: 0,
maxDepth: 100
},
]
@TidyIQ It doesn't convert types imported from other files. So StateProviderProps['store']
and ThemeProviderProps['theme']
are invalid.
I'm trying to get this to work but the only thing it does is add
import _pt from "prop-types";
to the file. It never actually converts the types to prop-types...I've tried with a very basic example, such as:
./packages/core/src/AppProvider/index.tsx
./babel.config.js
./packages/core/package.json
BUILD OUTPUT: ./packages/core/build/AppProvider/index.js