From d147ffb195131f0979e32fdbcb90c8dcf37fc524 Mon Sep 17 00:00:00 2001 From: Dan Adajian Date: Tue, 3 Sep 2024 13:04:21 -0500 Subject: [PATCH] docs: update import --- docs/docs/recommended-usage.md | 1 + src/config/schema.ts | 16 ++++++++-------- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/docs/docs/recommended-usage.md b/docs/docs/recommended-usage.md index 12f7db1..3699f40 100644 --- a/docs/docs/recommended-usage.md +++ b/docs/docs/recommended-usage.md @@ -98,6 +98,7 @@ open class MyType { Source code: ```kotlin +import com.types.generated.Query as QueryInterface import com.types.generated.MyType as MyTypeInterface class MyQuery : Query, QueryInterface() { diff --git a/src/config/schema.ts b/src/config/schema.ts index b2dc105..af8764b 100644 --- a/src/config/schema.ts +++ b/src/config/schema.ts @@ -24,6 +24,14 @@ import { import { Kind } from "graphql"; export const configSchema = object({ + /** + * Denotes whether to consolidate classes for input and output types whose fields are equivalent. + * + * @default true + * + * @link https://opensource.expediagroup.com/graphql-kotlin-codegen/docs/class-consolidation + */ + classConsolidationEnabled: optional(boolean()), /** * Limits dependent types to include from `onlyTypes` list. Can be used to exclude classes that are imported from external packages. * @@ -64,14 +72,6 @@ export const configSchema = object({ }), ), ), - /** - * Denotes whether to consolidate classes for input and output types whose fields are equivalent. - * - * @default true - * - * @link https://opensource.expediagroup.com/graphql-kotlin-codegen/docs/class-consolidation - */ - classConsolidationEnabled: optional(boolean()), /** * Denotes Kotlin classes representing union types to be treated as interfaces rather than annotation classes. *