Skip to content

Commit

Permalink
add supportsOptionalClassProperties to TypeScriptZod target language
Browse files Browse the repository at this point in the history
  • Loading branch information
inferrinizzard committed Jan 24, 2024
1 parent 838c5e0 commit 876aecb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/quicktype-core/src/language/TypeScriptZod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ export class TypeScriptZodTargetLanguage extends TargetLanguage {
return mapping;
}

get supportsOptionalClassProperties(): boolean {
return true;
}

protected makeRenderer(
renderContext: RenderContext,
untypedOptionValues: { [name: string]: any }
Expand Down

0 comments on commit 876aecb

Please sign in to comment.