@graphql-codegen/flow
Version:
GraphQL Code Generator plugin for generating Flow types
10 lines (9 loc) • 606 B
text/typescript
import { TypeNode } from 'graphql';
import { OperationVariablesToObject } from '@graphql-codegen/visitor-plugin-common';
export declare class FlowOperationVariablesToObject extends OperationVariablesToObject {
private clearOptional;
protected getScalar(name: string): string;
wrapAstTypeWithModifiers(baseType: string, typeNode: TypeNode, applyCoercion?: boolean): string;
protected formatFieldString(fieldName: string, isNonNullType: boolean, hasDefaultValue: boolean): string;
protected formatTypeString(fieldType: string, isNonNullType: boolean, hasDefaultValue: boolean): string;
}