Skip to content

Commit

Permalink
fix: rename props key to name
Browse files Browse the repository at this point in the history
  • Loading branch information
farnabaz committed Oct 13, 2021
1 parent 403e0fe commit 8781217
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ export default defineNuxtModule({
slots: data.slots,
props: (data.props || []).map(prop => {
return {
key: prop.name,
name: prop.name,
default: prop.defaultValue ? prop.defaultValue.value : undefined,
type: prop.type ? prop.type.name : undefined,
type: prop.type ? prop.type.name.split('|') : [],
required: prop.required,
values: prop.values,
description: prop.description
Expand Down

0 comments on commit 8781217

Please sign in to comment.