Skip to content

Commit

Permalink
Tweak argType generation
Browse files Browse the repository at this point in the history
  • Loading branch information
tmeasday committed May 12, 2021
1 parent 8c466c8 commit 8d6a999
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions addons/docs/src/frameworks/react/extractArgTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,17 @@ export const extractArgTypes: ArgTypesExtractor = (component) => {
return rows.reduce((acc: ArgTypes, row: PropDef) => {
const {
name,
description,
type,
sbType,
defaultValue: defaultSummary,
jsDocTags,
required,
...rest
} = row;

acc[name] = {
...rest,
name,
description,
type: { required, ...sbType },
table: {
type,
Expand Down

0 comments on commit 8d6a999

Please sign in to comment.