Repository navigation
[internal] Handle RecordType and FieldType in generatePropDescription.ts - #29467
Conversation
flaviendelangle
commented
Nov 2, 2021
- I have followed (at least) the PR section of the contributing guide.
mnajdova
left a comment
There was a problem hiding this comment.
Looks good. For easier review can we add props in a random component that have these types and verify that it works?
|
@mnajdova where do you want me to add one ? |
It doesn't matter, we will revert it, just to test out what would be the output. |
3c916b6 to
7871783
Compare
michaldudak
left a comment
There was a problem hiding this comment.
I don't know if this will be a problem - I noticed this doesn't work correctly when the record has a function field:
@returns {React.FunctionComponent<{ testNum: number, testStr: string, testFn: () => number }>}
It doesn't seem to be caused by your changes, though. The PR looks solid. Just don't forget to revert the test code :)
For my current use case, clearly not (I only use the empty Record for my I think we can improve it later it the use case come. |
7871783 to
c444f53
Compare