Skip to content

Commit

Permalink
Fix argType.type.name for Svelte
Browse files Browse the repository at this point in the history
  • Loading branch information
ghengeveld committed Jun 23, 2021
1 parent 28ec9dc commit 0539b87
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions addons/docs/src/frameworks/svelte/extractArgTypes.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ describe('Extracting Arguments', () => {
},
"type": Object {
"required": false,
"summary": "boolean",
"name": "boolean",
},
},
"slot_default": Object {
Expand Down Expand Up @@ -135,7 +135,7 @@ describe('Extracting Arguments', () => {
},
"type": Object {
"required": false,
"summary": "string",
"name": "string",
},
},
}
Expand Down
2 changes: 1 addition & 1 deletion addons/docs/src/frameworks/svelte/extractArgTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const createArgTypes = (docgen: SvelteComponentDoc) => {
description: item.description,
type: {
required: hasKeyword('required', item.keywords),
summary: item.type?.text,
name: item.type?.text,
},
table: {
type: {
Expand Down

0 comments on commit 0539b87

Please sign in to comment.