(entry: [string, unknown])
| 99 | } |
| 100 | |
| 101 | const formatEntry = (entry: [string, unknown]) => { |
| 102 | const [key, value] = entry; |
| 103 | const code = new Literal(value, this.opts).toCode(); |
| 104 | if (code === "") { |
| 105 | return ""; |
| 106 | } |
| 107 | return `'${key}': ${code}`; |
| 108 | }; |
| 109 | |
| 110 | const formattedEntries = entries |
| 111 | .map(formatEntry) |