Skip to content

Commit

Permalink
add typescript avoidOptionals to forwarded configs (#8752)
Browse files Browse the repository at this point in the history
* add typescript avoidOptionals to forwarded configs

allow missing possible option avoidOptionals to forwarded configs

* Create silver-peaches-itch.md

Co-authored-by: Saihajpreet Singh <saihajpreet.singh@gmail.com>
  • Loading branch information
pbrink231 and saihaj authored Dec 26, 2022
1 parent 6c6b6f2 commit cbca5a7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/silver-peaches-itch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@graphql-codegen/client-preset": patch
---

add typescript `avoidOptionals` to forwarded config
1 change: 1 addition & 0 deletions packages/presets/client/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ export const preset: Types.OutputPreset<ClientPresetConfig> = {
enumsAsTypes: options.config.enumsAsTypes,
dedupeFragments: options.config.dedupeFragments,
nonOptionalTypename: options.config.nonOptionalTypename,
avoidOptionals: options.config.avoidOptionals,
};

const visitor = new ClientSideBaseVisitor(options.schemaAst!, [], options.config, options.config);
Expand Down

0 comments on commit cbca5a7

Please sign in to comment.