[FA-11] Fix react build issues
This commit is contained in:
@@ -22,15 +22,17 @@ const config: CodegenConfig = {
|
||||
plugins: [
|
||||
'typescript',
|
||||
'typescript-operations',
|
||||
'typescript-react-apollo',
|
||||
'typed-document-node',
|
||||
],
|
||||
config: {
|
||||
withHooks: true,
|
||||
avoidOptionals: true,
|
||||
dedupeFragments: true,
|
||||
avoidOptionals: {
|
||||
field: true,
|
||||
inputValue: false,
|
||||
},
|
||||
enumsAsConst: true,
|
||||
maybeValue: 'T | null',
|
||||
skipTypename: true,
|
||||
apolloReactHooksImportFrom: '@apollo/client/react',
|
||||
useTypeImports: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user