File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 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'
8686/* generates validation schema here */
8787` ` `
8888
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+
8997# ## `typesPrefix`
9098
9199type : ` string` default: (empty)
Original file line number Diff line number Diff line change @@ -57,6 +57,7 @@ export interface ValidationSchemaPluginConfig extends TypeScriptPluginConfig {
5757 * @description Will use `import type {}` rather than `import {}` when importing generated typescript types.
5858 * This gives compatibility with TypeScript's "importsNotUsedAsValues": "error" option
5959 * Should used in conjunction with `importFrom` option.
60+ * @default false
6061 *
6162 * @exampleMarkdown
6263 * ```yml
@@ -71,7 +72,6 @@ export interface ValidationSchemaPluginConfig extends TypeScriptPluginConfig {
7172 * schema: yup
7273 * importFrom: ./path/to/types
7374 * useTypeImports: true
74- *
7575 * ```
7676 */
7777 useTypeImports ?: boolean ;
You can’t perform that action at this time.
0 commit comments