UNPKG

727 BTypeScriptView Raw
1import { BaseVisitor } from '@graphql-codegen/visitor-plugin-common';
2import { SelectionSetNode, GraphQLSchema } from 'graphql';
3import { CompatibilityPluginRawConfig } from './config';
4import { CompatibilityPluginConfig } from './visitor';
5export declare type SelectionSetToObjectResult = {
6 [typeName: string]: {
7 export: string;
8 name: string;
9 };
10};
11export declare function selectionSetToTypes(typesPrefix: string, baseVisitor: BaseVisitor<CompatibilityPluginRawConfig, CompatibilityPluginConfig>, schema: GraphQLSchema, parentTypeName: string, stack: string, fieldName: string, selectionSet: SelectionSetNode, preResolveTypes: boolean, result?: SelectionSetToObjectResult): SelectionSetToObjectResult;