Skip to content

Commit

Permalink
feat(stephenh#909): ran format
Browse files Browse the repository at this point in the history
  • Loading branch information
FrabatUni committed Aug 23, 2023
1 parent 613b28a commit d0d7b66
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/enums.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,15 @@ export function generateEnum(
chunks.push(code`}`);
}

if (options.outputJsonMethods === true || options.outputJsonMethods === 'from-only' || (options.stringEnums && options.outputEncodeMethods)) {
if (
options.outputJsonMethods === true ||
options.outputJsonMethods === "from-only" ||
(options.stringEnums && options.outputEncodeMethods)
) {
chunks.push(code`\n`);
chunks.push(generateEnumFromJson(ctx, fullName, enumDesc));
}
if (options.outputJsonMethods === true || options.outputJsonMethods === 'to-only') {
if (options.outputJsonMethods === true || options.outputJsonMethods === "to-only") {
chunks.push(code`\n`);
chunks.push(generateEnumToJson(ctx, fullName, enumDesc));
}
Expand Down

0 comments on commit d0d7b66

Please sign in to comment.