Skip to content

Commit

Permalink
fix: add spaces to default value JSON to allow wrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
jacekkarczmarczyk authored and KaelWD committed Oct 25, 2018
1 parent 3a702bd commit ed3a69d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/helpers/Parameters.vue
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@
return this.genTypescriptDef(props)
},
genDefault (value) {
if (typeof value !== 'string') return JSON.stringify(value)
if (typeof value !== 'string') return JSON.stringify(value, null, 2)
else return value
},
genTypescriptDef (obj) {
Expand Down

0 comments on commit ed3a69d

Please sign in to comment.