Skip to content

Commit

Permalink
apply prettier formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
avlyalin committed Jul 10, 2024
1 parent 341d90b commit a77b1d7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2122,7 +2122,9 @@ function generateFromJson(ctx: Context, fullName: string, fullTypeName: string,
} else {
// Explicit `any` type required to make TS with noImplicitAny happy. `object` is also `any` here.
chunks.push(code`
${fieldKey}: ${ctx.utils.globalThis}.Array.isArray(${jsonPropertyOptional}) ? ${jsonProperty}.map((e: any) => ${readSnippet("e")}): ${fallback},
${fieldKey}: ${
ctx.utils.globalThis
}.Array.isArray(${jsonPropertyOptional}) ? ${jsonProperty}.map((e: any) => ${readSnippet("e")}): ${fallback},
`);
}
}
Expand Down

0 comments on commit a77b1d7

Please sign in to comment.