1 | import { RawClientSideBasePluginConfig } from '@graphql-codegen/visitor-plugin-common';
|
2 | /**
|
3 | * @description This plugin generates Stencil Apollo functional components typings
|
4 | *
|
5 | * It extends the basic TypeScript plugins: `@graphql-codegen/typescript`, `@graphql-codegen/typescript-operations` - and thus shares a similar configuration.
|
6 | */
|
7 | export interface StencilApolloRawPluginConfig extends RawClientSideBasePluginConfig {
|
8 | /**
|
9 | * @description Customize the output of the plugin - you can choose to generate a Component class or a function component.
|
10 | * @default functional
|
11 | *
|
12 | * @exampleMarkdown
|
13 | * ```yml
|
14 | * generates:
|
15 | * path/to/file.ts:
|
16 | * plugins:
|
17 | * - typescript
|
18 | * - typescript-operations
|
19 | * - typescript-stencil-apollo
|
20 | * config:
|
21 | * componentType: class
|
22 | * ```
|
23 | */
|
24 | componentType?: StencilComponentType;
|
25 | }
|
26 | export declare enum StencilComponentType {
|
27 | functional = "functional",
|
28 | class = "class"
|
29 | }
|
30 |
|
\ | No newline at end of file |