Skip to content

Commit dffbda4

Browse files
author
Aleksei Dmitriev
committed
chore: Fix readme
1 parent 8ee52b9 commit dffbda4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,9 +109,9 @@ type PropFilter = (prop: PropItem, component: Component) => boolean;
109109

110110
const options = {
111111
propFilter: (prop: PropItem, component: Component) => {
112-
if (prop.parents !== undefined && prop.parents.length > 0) {
113-
const hasPropAdditionalDescription = prop.parents.find((parent) => {
114-
return !parent.fileName.includes("node_modules");
112+
if (prop.declarations !== undefined && prop.declarations.length > 0) {
113+
const hasPropAdditionalDescription = prop.declarations.find((declaration) => {
114+
return !declaration.fileName.includes("node_modules");
115115
});
116116

117117
return Boolean(hasPropAdditionalDescription);

0 commit comments

Comments
 (0)