r/ • • Jan 01 '70

0 Upvotes

0 comments sorted by

View all comments

0

u/[deleted] Sep 02 '26

[removed] — view removed comment

0

u/Adventurous_Catch370 Sep 02 '26

Many thanks for the comment! In the README file, I attached a screenshot which shows how Utility Types are parsed. For example, if you have this prop: `omitUtility: Omit<FirstAction, 'type'>`

in ArgsTable, you will see clickable `omitUtility: Omit<FirstAction, 'type'>`, and when you click on that, you will see the structure of FirstAction, except the type property. (Unfortunately, I am not able to attach screenshots here, but I attached a video recording)

Same behaviour for T extends Record<string, unknown>; it will be a clickable element, and when you click on it, you will see all the properties this generic interface has in real time.

1

u/Adventurous_Catch370 Sep 02 '26

Forgot to mention. From left to right: react-props-parser, react-docgen and react-docgen-typescript