-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Generate input types and output enums into target file #10527
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master-next
Are you sure you want to change the base?
Generate input types and output enums into target file #10527
Conversation
|
| ); | ||
| this._declarationBlockConfig = { | ||
| ignoreExport: this.config.noExport, | ||
| enumNameValueSeparator: ' =', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I experimented with different enumType, this value appears to be required for other enumTypes to work.
| const operationsResult = oldVisit(allAst, { leave: visitor }); | ||
|
|
||
| let operationsContent = operationsResult.definitions.join('\n'); | ||
| const operationsDefinitions = operationsResult.definitions; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I rearranged/simplified the code here - please check.
| operationsContent = operationsResult.definitions.concat(exportConsts).join('\n'); | ||
| } | ||
|
|
||
| if (config.globalNamespace) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I moved this block to the end - to include all the generated code.
Description
Generates input types into target files.
Generates output enums into target files.
Related # #10496
Type of change
Please delete options that are not relevant.
How Has This Been Tested?