Skip to content

Commit 3fbce30

Browse files
authored
Storybook: Restore props docgen settings (#102383)
1 parent 5fdd5ca commit 3fbce30

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/calypso-storybook/src/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ module.exports = function storybookDefaultConfig( {
5151
check: false,
5252
reactDocgen: 'react-docgen-typescript',
5353
reactDocgenTypescriptOptions: {
54+
shouldExtractLiteralValuesFromEnum: true,
55+
shouldRemoveUndefinedFromOptional: true,
56+
savePropValueAsString: true,
5457
propFilter: ( prop ) => {
5558
// Always show props declared in `@wordpress/components`
5659
if ( prop.declarations.some( ( d ) => d.fileName.includes( '@wordpress/components' ) ) ) {

0 commit comments

Comments
 (0)