Skip to content

Commit 850c0f7

Browse files
committed
add some comments
1 parent 20ea160 commit 850c0f7

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

workspaces/leetcode-api/graphql-codegen.config.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ const config: CodegenConfig = {
2323
"src/": {
2424
preset: "near-operation-file",
2525
presetConfig: {
26+
// TODO: get this to use a ".ts" extension in the output
2627
baseTypesPath: "~../../graphqlTypes.generated",
2728
extension: ".generated.ts",
2829
fileName: "fetchGraphQL",
@@ -41,7 +42,9 @@ const config: CodegenConfig = {
4142
},
4243
hooks: {
4344
afterAllFileWrite: [
45+
// The per-operation files can end up with imports in the middle.
4446
"eslint --fix --rule import-x/first:warn",
47+
4548
"prettier --write",
4649
],
4750
},

workspaces/leetcode-api/src/fetchGraphQLTypeInformation.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ function getTypeFields(depth: number): string {
2121

2222
// TODO: Validate that a depth of 5 is sufficient below.
2323

24+
// TODO: maybe use graphql-query-compress here as well
2425
const FRAGMENT = squashWhitespace(`
2526
fragment TypeFields on __Type {
2627
name

0 commit comments

Comments
 (0)