-
Notifications
You must be signed in to change notification settings - Fork 258
Closed
Description
Hey, can I add to your /examples directory an example using propFilter with a custom function? I found it a bit tricky. Possibly just updating the docs could help as well. For instance:
propsParser: require('react-docgen-typescript').withDefaultConfig([parserOptions]).parseIs confusing because it looks like parseOptions is an array, but really it is an object. I think this would be more readable {parserOptions}.
Also the name of the option is propFilter, but the code below has
(props: PropItem, component: Component) => boolean
if (prop.parent) {
return !prop.parent.fileName.includes('node_modules')
}
return true
So it is unclear if you are getting an array of props or a single prop.
Metadata
Metadata
Assignees
Labels
No labels