Skip to content

Commit 18c3c43

Browse files
committed
ID output can only be string
1 parent 2c1391d commit 18c3c43

1 file changed

Lines changed: 70 additions & 19 deletions

File tree

codegen.ts

Lines changed: 70 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ const config: CodegenConfig = {
3535
scalars: {
3636
CHF: 'string',
3737
Chronos: {
38-
output: 'string',
3938
input: 'string | Date',
39+
output: 'string',
4040
},
4141
Color: 'string',
4242
Date: {
43-
output: 'string',
4443
input: 'string | Date',
44+
output: 'string',
4545
},
4646
EUR: 'string',
4747
Email: 'string',
@@ -52,23 +52,74 @@ const config: CodegenConfig = {
5252
// All IDs
5353
// Ideally we should not use `any` at all, but we want to be able
5454
// to use either a string or an entire subobject.
55-
CommentID: 'string | any',
56-
CountryID: 'string | any',
57-
EventID: 'string | any',
58-
FileID: 'string | any',
59-
ImageID: 'string | any',
60-
LogID: 'string | any',
61-
MessageID: 'string | any',
62-
NewsID: 'string | any',
63-
OrderLineID: 'string | any',
64-
OrderID: 'string | any',
65-
OrganizationID: 'string | any',
66-
ProductID: 'string | any',
67-
ProductTagID: 'string | any',
68-
SessionID: 'string | any',
69-
SubscriptionID: 'string | any',
70-
UserID: 'string | any',
71-
FacilitatorDocumentID: 'string | any',
55+
CommentID: {
56+
input: 'string | any',
57+
output: 'string',
58+
},
59+
CountryID: {
60+
input: 'string | any',
61+
output: 'string',
62+
},
63+
EventID: {
64+
input: 'string | any',
65+
output: 'string',
66+
},
67+
FileID: {
68+
input: 'string | any',
69+
output: 'string',
70+
},
71+
ImageID: {
72+
input: 'string | any',
73+
output: 'string',
74+
},
75+
LogID: {
76+
input: 'string | any',
77+
output: 'string',
78+
},
79+
MessageID: {
80+
input: 'string | any',
81+
output: 'string',
82+
},
83+
NewsID: {
84+
input: 'string | any',
85+
output: 'string',
86+
},
87+
OrderLineID: {
88+
input: 'string | any',
89+
output: 'string',
90+
},
91+
OrderID: {
92+
input: 'string | any',
93+
output: 'string',
94+
},
95+
OrganizationID: {
96+
input: 'string | any',
97+
output: 'string',
98+
},
99+
ProductID: {
100+
input: 'string | any',
101+
output: 'string',
102+
},
103+
ProductTagID: {
104+
input: 'string | any',
105+
output: 'string',
106+
},
107+
SessionID: {
108+
input: 'string | any',
109+
output: 'string',
110+
},
111+
SubscriptionID: {
112+
input: 'string | any',
113+
output: 'string',
114+
},
115+
UserID: {
116+
input: 'string | any',
117+
output: 'string',
118+
},
119+
FacilitatorDocumentID: {
120+
input: 'string | any',
121+
output: 'string',
122+
},
72123
},
73124
},
74125
};

0 commit comments

Comments
 (0)