1 | import { ConvertNameFn, NormalizedAvoidOptionalsConfig, NormalizedScalarsMap, OperationVariablesToObject, ParsedDirectiveArgumentAndInputFieldMappings, ParsedEnumValuesMap } from '@graphql-codegen/visitor-plugin-common';
|
2 | import { TypeNode } from 'graphql';
|
3 | export declare class TypeScriptOperationVariablesToObject extends OperationVariablesToObject {
|
4 | private _avoidOptionals;
|
5 | private _immutableTypes;
|
6 | private _maybeType;
|
7 | constructor(_scalars: NormalizedScalarsMap, _convertName: ConvertNameFn, _avoidOptionals: NormalizedAvoidOptionalsConfig, _immutableTypes: boolean, _namespacedImportName?: string | null, _enumNames?: string[], _enumPrefix?: boolean, _enumSuffix?: boolean, _enumValues?: ParsedEnumValuesMap, _applyCoercion?: Boolean, _directiveArgumentAndInputFieldMappings?: ParsedDirectiveArgumentAndInputFieldMappings, _maybeType?: string);
|
8 | private clearOptional;
|
9 | wrapAstTypeWithModifiers(baseType: string, typeNode: TypeNode, applyCoercion?: boolean): string;
|
10 | protected formatFieldString(fieldName: string, isNonNullType: boolean, hasDefaultValue: boolean): string;
|
11 | protected formatTypeString(fieldType: string, isNonNullType: boolean, hasDefaultValue: boolean): string;
|
12 | protected wrapMaybe(type?: string): string;
|
13 | protected getAvoidOption(isNonNullType: boolean, hasDefaultValue: boolean): boolean;
|
14 | protected getPunctuation(): string;
|
15 | }
|