@graphql-codegen/typescript-operations 6.1.4 → 6.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-codegen/typescript-operations",
3
- "version": "6.1.4",
3
+ "version": "6.1.5",
4
4
  "description": "GraphQL Code Generator plugin for generating TypeScript types for GraphQL queries, mutations, subscriptions and fragments",
5
5
  "peerDependenciesMeta": {
6
6
  "graphql-sock": {
@@ -125,6 +125,30 @@ export interface TypeScriptDocumentsPluginConfig extends RawDocumentsConfig {
125
125
  * ```
126
126
  */
127
127
  noExport?: boolean;
128
+ /**
129
+ * @description Set the value to `true` in order to disable all description generation.
130
+ * @default false
131
+ *
132
+ * @exampleMarkdown
133
+ * ## Disable description generation
134
+ * ```ts filename="codegen.ts"
135
+ * import type { CodegenConfig } from '@graphql-codegen/cli'
136
+ *
137
+ * const config: CodegenConfig = {
138
+ * // ...
139
+ * generates: {
140
+ * 'path/to/file.ts': {
141
+ * plugins: ['typescript-operations'],
142
+ * config: {
143
+ * disableDescriptions: true
144
+ * }
145
+ * }
146
+ * }
147
+ * }
148
+ * export default config
149
+ * ```
150
+ */
151
+ disableDescriptions?: boolean;
128
152
  /**
129
153
  * @name addOperationExport
130
154
  * @type boolean
@@ -125,6 +125,30 @@ export interface TypeScriptDocumentsPluginConfig extends RawDocumentsConfig {
125
125
  * ```
126
126
  */
127
127
  noExport?: boolean;
128
+ /**
129
+ * @description Set the value to `true` in order to disable all description generation.
130
+ * @default false
131
+ *
132
+ * @exampleMarkdown
133
+ * ## Disable description generation
134
+ * ```ts filename="codegen.ts"
135
+ * import type { CodegenConfig } from '@graphql-codegen/cli'
136
+ *
137
+ * const config: CodegenConfig = {
138
+ * // ...
139
+ * generates: {
140
+ * 'path/to/file.ts': {
141
+ * plugins: ['typescript-operations'],
142
+ * config: {
143
+ * disableDescriptions: true
144
+ * }
145
+ * }
146
+ * }
147
+ * }
148
+ * export default config
149
+ * ```
150
+ */
151
+ disableDescriptions?: boolean;
128
152
  /**
129
153
  * @name addOperationExport
130
154
  * @type boolean