<% const { contract, utils, config } = it; const { formatDescription, require, _ } = utils; const { name, $content } = contract; %> <% if (config.generateUnionEnums) { %> export type <%~ name %> = <%~ _.map($content, ({ value }) => value).join(" | ") %> <% } else { %> export enum <%~ name %> { <%~ _.map($content, ({ key, value }) => `${key} = ${value}`).join(",\n") %> } <% } %>