File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -107,6 +107,33 @@ import { IGeneratedInput } from './graphql'
107
107
/* generates validation schema here */
108
108
` ` `
109
109
110
+ # ## `typesSuffix`
111
+
112
+ type : ` string` default: (empty)
113
+
114
+ Suffixes all import types from generated typescript type.
115
+
116
+ ` ` ` yml
117
+ generates:
118
+ path/to/graphql.ts:
119
+ plugins:
120
+ - typescript
121
+ path/to/validation.ts:
122
+ plugins:
123
+ - typescript-validation-schema
124
+ config:
125
+ typesSuffix: I
126
+ importFrom: ./graphql # path for generated ts code
127
+ ` ` `
128
+
129
+ Then the generator generates code with import statement like below.
130
+
131
+ ` ` ` ts
132
+ import { GeneratedInputI } from './graphql'
133
+
134
+ /* generates validation schema here */
135
+ ` ` `
136
+
110
137
# ## `enumsAsTypes`
111
138
112
139
type : ` boolean` default: `false`
You can’t perform that action at this time.
0 commit comments