Skip to content

Commit

Permalink
fixes JohnyDays#2 by adding quotes around keys
Browse files Browse the repository at this point in the history
  • Loading branch information
thurt committed Mar 19, 2017
1 parent 093d61f commit 7c1f7ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ module.exports = function doIt(inputObject, spaceAmount, useTabs) {
const indentation = generateIndentation(indentationLevel + 1)
for (const key in object) {
const value = object[key]
type += `${indentation}${key}: ${anyToType(value, indentationLevel + 1)},\n`
type += `${indentation}"${key}": ${anyToType(value, indentationLevel + 1)},\n`
}

return `${type}${generateIndentation(indentationLevel)}}`
Expand Down

0 comments on commit 7c1f7ef

Please sign in to comment.