-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcodegen.yml
38 lines (37 loc) · 1.17 KB
/
codegen.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
overwrite: true
schema: 'http://localhost:8000/api/graphql'
documents: 'src/**/*.jsx'
watchConfig:
usePolling: true
interval: 1000
generates:
src/store/apis/types.generated.ts:
plugins:
- typescript
config:
maybeValue: T # normally, this would be T | null, but our msw mock returns everything as nullable, so we want to force these as non-nullalbe
src/:
preset: near-operation-file
presetConfig:
baseTypesPath: store/apis/types.generated.ts
plugins:
- add:
content: >
/* eslint-disable */
/**
*
* THIS FILE IS AUTOGENERATED, DO NOT EDIT IT!
*
* instead, edit one of queries in this project and run
*
* npm run generate
*
* for this file to be re-created
*/
- typescript-operations
- typescript-rtk-query:
importBaseApiFrom: 'src/store/graphqlBaseApi'
exportHooks: true
overrideExisting: true
config:
maybeValue: T # normally, this would be T | null, but our msw mock returns everything as nullable, so we want to force these as non-nullalbe