Skip to content
Discussion options

You must be logged in to vote

Hi @poljsakerik,

GraphQL Code Generator does not use any external tool to format the generated TypeScript code.
However, we created a set of utils to make the code generation easier, like DeclarationBlock, that you can see used here:

.

Please note that we handle indenting and line breaks manually, as showcases here:

allDirectives.push(comment + indent(`${directiveName}: ${parsedMapper.type}${this.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by charlypoly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants