From 5bc86c298bc7dd774e28adb8374b60fa075ec9a3 Mon Sep 17 00:00:00 2001 From: Michael Shilman Date: Wed, 15 Jul 2020 00:11:44 +0800 Subject: [PATCH] Fix typescript settings doc --- docs/src/pages/configurations/typescript-config/index.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/src/pages/configurations/typescript-config/index.md b/docs/src/pages/configurations/typescript-config/index.md index ff6251f8bbd..48f5ae337e3 100644 --- a/docs/src/pages/configurations/typescript-config/index.md +++ b/docs/src/pages/configurations/typescript-config/index.md @@ -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), }, },