Skip to content

Commit 5917144

Browse files
authored
Merge pull request #4 from stackaid/feat-schema-types
Use graphql schema and codgen for proper types
2 parents 758722d + 82ec3d2 commit 5917144

File tree

13 files changed

+62127
-2863
lines changed

13 files changed

+62127
-2863
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,4 +103,6 @@ typings/
103103
.tern-port
104104

105105
# Ignore ts built files
106-
lib
106+
lib
107+
108+
schema.graphql

codegen.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
overwrite: true
2+
schema: 'schema.graphql'
3+
generates:
4+
types/graphql.ts:
5+
documents:
6+
- 'src/**/*.ts'
7+
config:
8+
skipTypename: true
9+
avoidOptionals: true
10+
maybeValue: T
11+
plugins:
12+
- 'typescript'
13+
- 'typescript-operations'

0 commit comments

Comments
 (0)