UNPKG

1.51 kBTypeScriptView Raw
1import { RawConfig, EnumValuesMap } from '@graphql-codegen/visitor-plugin-common';
2export interface KotlinResolversPluginRawConfig extends RawConfig {
3 /**
4 * @description Customize the Java package name. The default package name will be generated according to the output file path.
5 *
6 * @exampleMarkdown
7 * ```yml
8 * generates:
9 * src/main/kotlin/my-org/my-app/Resolvers.kt:
10 * plugins:
11 * - kotlin
12 * config:
13 * package: custom.package.name
14 * ```
15 */
16 package?: string;
17 /**
18 * @description Overrides the default value of enum values declared in your GraphQL schema.
19 *
20 * @exampleMarkdown
21 * ```yml
22 * config:
23 * enumValues:
24 * MyEnum:
25 * A: 'foo'
26 * ```
27 */
28 enumValues?: EnumValuesMap;
29 /**
30 * @default Iterable
31 * @description Allow you to customize the list type
32 *
33 * @exampleMarkdown
34 * ```yml
35 * generates:
36 * src/main/kotlin/my-org/my-app/Types.kt:
37 * plugins:
38 * - kotlin
39 * config:
40 * listType: Map
41 * ```
42 */
43 listType?: string;
44 /**
45 * @default false
46 * @description Allow you to enable generation for the types
47 *
48 * @exampleMarkdown
49 * ```yml
50 * generates:
51 * src/main/kotlin/my-org/my-app/Types.kt:
52 * plugins:
53 * - kotlin
54 * config:
55 * withTypes: true
56 * ```
57 */
58 withTypes?: boolean;
59}