-
Notifications
You must be signed in to change notification settings - Fork 50
/
codegen-labs.yml
51 lines (48 loc) · 1.35 KB
/
codegen-labs.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
39
40
41
42
43
44
45
46
47
48
49
50
51
overwrite: true
schema:
- https://gapi.storyblok.com/v1/api:
headers:
Token: '${NEXT_PUBLIC_STORYBLOK_TOKEN}'
Version: draft
generates:
apps/labs/api/types/basic.ts:
documents: 'libs/shared/storyblok-sdk/src/api/queries/common/*.graphql'
plugins:
- add:
content: '/* eslint-disable @typescript-eslint/no-explicit-any */'
- typescript
config:
avoidOptionals:
field: true
inputValue: true
object: true
defaultValue: true
apps/labs/api/types/operations.ts:
documents: 'libs/shared/storyblok-sdk/src/api/queries/common/*.graphql'
preset: import-types
presetConfig:
typesPath: ./basic
plugins:
- add:
content: '/* eslint-disable @typescript-eslint/no-explicit-any */'
- typescript-operations
config:
avoidOptionals:
field: true
inputValue: true
object: true
defaultValue: true
apps/labs/api/types/hooks.ts:
documents: 'libs/shared/storyblok-sdk/src/api/queries/common/*.graphql'
preset: import-types
presetConfig:
typesPath: ./operations
plugins:
- add:
content: '/* eslint-disable @typescript-eslint/no-explicit-any */'
- typescript-react-apollo
config:
withHOC: false
withComponent: false
withHooks: false
withResultType: true