UNPKG

579 BTypeScriptView Raw
1import { GraphQLEnumType, GraphQLInputType, GraphQLScalarType } from 'graphql';
2declare type InputValueTransformer = (type: GraphQLEnumType | GraphQLScalarType, originalValue: any) => any;
3export declare function transformInputValue(type: GraphQLInputType, value: any, transformer: InputValueTransformer): any;
4export declare function serializeInputValue(type: GraphQLInputType, value: any): any;
5export declare function parseInputValue(type: GraphQLInputType, value: any): any;
6export declare function parseInputValueLiteral(type: GraphQLInputType, value: any): any;
7export {};