Comparing version 0.0.9-29 to 0.0.9-30
@@ -211,8 +211,14 @@ "use strict"; | ||
if (literal.base === null) { | ||
if (literal.fields.length === 1) { | ||
return `{ ${fields} }`; | ||
const _res1477476904 = `${literal.fields.length}`; | ||
switch (_res1477476904) { | ||
case "0": { | ||
return "{ }"; | ||
} | ||
case "1": { | ||
return `{ ${fields} }`; | ||
} | ||
default: { | ||
return `{\n${maybePrefixed}\n}`; | ||
} | ||
} | ||
else { | ||
return `{\n${maybePrefixed}\n}`; | ||
} | ||
; | ||
@@ -219,0 +225,0 @@ } |
{ | ||
"name": "derw", | ||
"version": "0.0.9-29", | ||
"version": "0.0.9-30", | ||
"description": "An Elm-inspired language that transpiles to TypeScript", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -212,6 +212,13 @@ import * as List from "../stdlib/List"; | ||
if (literal.base === null) { | ||
if (literal.fields.length === 1) { | ||
return `{ ${fields} }`; | ||
} else { | ||
return `{\n${maybePrefixed}\n}`; | ||
const _res1477476904 = `${literal.fields.length}`; | ||
switch (_res1477476904) { | ||
case "0": { | ||
return "{ }"; | ||
} | ||
case "1": { | ||
return `{ ${fields} }`; | ||
} | ||
default: { | ||
return `{\n${maybePrefixed}\n}`; | ||
} | ||
}; | ||
@@ -218,0 +225,0 @@ } else { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
1437105
32473