File tree 2 files changed +9
-1
lines changed
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,14 @@ import { GeneratedInput } from './graphql'
86
86
/* generates validation schema here */
87
87
` ` `
88
88
89
+ # ## `useTypeImports`
90
+
91
+ type : ` boolean` default: `false`
92
+
93
+ Will use `import type {}` rather than `import {}` when importing generated TypeScript types.
94
+ This gives compatibility with TypeScript's "importsNotUsedAsValues" : " error" option.
95
+ Should used in conjunction with `importFrom` option.
96
+
89
97
# ## `typesPrefix`
90
98
91
99
type : ` string` default: (empty)
Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ export interface ValidationSchemaPluginConfig extends TypeScriptPluginConfig {
57
57
* @description Will use `import type {}` rather than `import {}` when importing generated typescript types.
58
58
* This gives compatibility with TypeScript's "importsNotUsedAsValues": "error" option
59
59
* Should used in conjunction with `importFrom` option.
60
+ * @default false
60
61
*
61
62
* @exampleMarkdown
62
63
* ```yml
@@ -71,7 +72,6 @@ export interface ValidationSchemaPluginConfig extends TypeScriptPluginConfig {
71
72
* schema: yup
72
73
* importFrom: ./path/to/types
73
74
* useTypeImports: true
74
- *
75
75
* ```
76
76
*/
77
77
useTypeImports ?: boolean ;
You can’t perform that action at this time.
0 commit comments