Skip to content

Commit d147ffb

Browse files
committed
docs: update import
1 parent f4d442a commit d147ffb

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

docs/docs/recommended-usage.md

+1
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ open class MyType {
9898
Source code:
9999

100100
```kotlin
101+
import com.types.generated.Query as QueryInterface
101102
import com.types.generated.MyType as MyTypeInterface
102103

103104
class MyQuery : Query, QueryInterface() {

src/config/schema.ts

+8-8
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,14 @@ import {
2424
import { Kind } from "graphql";
2525

2626
export const configSchema = object({
27+
/**
28+
* Denotes whether to consolidate classes for input and output types whose fields are equivalent.
29+
*
30+
* @default true
31+
*
32+
* @link https://opensource.expediagroup.com/graphql-kotlin-codegen/docs/class-consolidation
33+
*/
34+
classConsolidationEnabled: optional(boolean()),
2735
/**
2836
* Limits dependent types to include from `onlyTypes` list. Can be used to exclude classes that are imported from external packages.
2937
*
@@ -64,14 +72,6 @@ export const configSchema = object({
6472
}),
6573
),
6674
),
67-
/**
68-
* Denotes whether to consolidate classes for input and output types whose fields are equivalent.
69-
*
70-
* @default true
71-
*
72-
* @link https://opensource.expediagroup.com/graphql-kotlin-codegen/docs/class-consolidation
73-
*/
74-
classConsolidationEnabled: optional(boolean()),
7575
/**
7676
* Denotes Kotlin classes representing union types to be treated as interfaces rather than annotation classes.
7777
*

0 commit comments

Comments
 (0)