UNPKG

@graphql-codegen/typescript-operations

Version:

GraphQL Code Generator plugin for generating TypeScript types for GraphQL queries, mutations, subscriptions and fragments

17 lines (16 loc) 931 B
import { AvoidOptionalsConfig, BaseDocumentsVisitor, DeclarationKind, LoadedFragment, ParsedDocumentsConfig } from '@graphql-codegen/visitor-plugin-common'; import { GraphQLSchema } from 'graphql'; import { TypeScriptDocumentsPluginConfig } from './config.cjs'; export interface TypeScriptDocumentsParsedConfig extends ParsedDocumentsConfig { arrayInputCoercion: boolean; avoidOptionals: AvoidOptionalsConfig; immutableTypes: boolean; noExport: boolean; maybeValue: string; } export declare class TypeScriptDocumentsVisitor extends BaseDocumentsVisitor<TypeScriptDocumentsPluginConfig, TypeScriptDocumentsParsedConfig> { constructor(schema: GraphQLSchema, config: TypeScriptDocumentsPluginConfig, allFragments: LoadedFragment[]); getImports(): Array<string>; protected getPunctuation(_declarationKind: DeclarationKind): string; protected applyVariablesWrapper(variablesBlock: string): string; }