|
setDisplayName: setDisplayName || true, |
Because of the use of the logical or operator here it is not possible to pass false as an option. Passing false incorrectly results in setDisplayName being set to true. Instead I would recommend using the nullish coalescing operator instead (or some similar approach).
Happy to put in a PR if you need.
react-docgen-typescript-plugin/src/plugin.ts
Line 290 in 31ce4e8
Because of the use of the logical or operator here it is not possible to pass
falseas an option. Passingfalseincorrectly results insetDisplayNamebeing set totrue. Instead I would recommend using the nullish coalescing operator instead (or some similar approach).Happy to put in a PR if you need.