Fix typescript settings doc

This commit is contained in:
Michael Shilman 2020-07-15 00:11:44 +08:00
parent badece6115
commit 5bc86c298b

View File

@ -34,6 +34,7 @@ module.exports = {
reactDocgen: 'react-docgen-typescript',
reactDocgenTypescriptOptions: {
shouldExtractLiteralValuesFromEnum: true,
shouldRemoveUndefinedFromOptional: true,
propFilter: (prop) => (prop.parent ? !/node_modules/.test(prop.parent.fileName) : true),
},
},