Closed emmenko closed 5 years ago
@milesj I'd like to try to fix this, could you point me to the right direction where I should be looking at in the code?
@emmenko You would probably add another if conditional here: https://github.com/milesj/babel-plugin-typescript-to-proptypes/blob/master/src/convertBabelToPropTypes.ts#L24
Will be supported in the next version.
Given this usage of Mapped Types (meaning an index signature where index strings can be members of a union of literal strings):
Then, there are no resulting prop types associated to the prop
color
.You can see it from the following failing spec: