How to choose just specific props to be generated?
Closed this issue · 2 comments
samuelcastro commented
strothj commented
You can use the PropFilter:
#21
styleguidist/react-docgen-typescript#111
samuelcastro commented
Awesome, thanks @strothj this fixed the problem:
propFilter: (prop) => {
if (prop.parent == null) {
return true;
}
return prop.parent.fileName.indexOf('node_modules/@types/react') < 0;
}