Skip to content

Commit

Permalink
Merge pull request #4 from stackaid/feat-schema-types
Browse files Browse the repository at this point in the history
Use graphql schema and codgen for proper types
  • Loading branch information
wescarr authored Aug 27, 2022
2 parents 758722d + 82ec3d2 commit 5917144
Show file tree
Hide file tree
Showing 13 changed files with 62,127 additions and 2,863 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,6 @@ typings/
.tern-port

# Ignore ts built files
lib
lib

schema.graphql
13 changes: 13 additions & 0 deletions codegen.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
overwrite: true
schema: 'schema.graphql'
generates:
types/graphql.ts:
documents:
- 'src/**/*.ts'
config:
skipTypename: true
avoidOptionals: true
maybeValue: T
plugins:
- 'typescript'
- 'typescript-operations'
Loading

0 comments on commit 5917144

Please sign in to comment.