isValidLiteralValue.d.ts 483 B

123456789101112131415
  1. import { GraphQLError } from '../error/GraphQLError';
  2. import { ValueNode } from '../language/ast';
  3. import { GraphQLInputType } from '../type/definition';
  4. /**
  5. * Utility which determines if a value literal node is valid for an input type.
  6. *
  7. * Deprecated. Rely on validation for documents containing literal values.
  8. *
  9. * This function will be removed in v15
  10. */
  11. export function isValidLiteralValue(
  12. type: GraphQLInputType,
  13. valueNode: ValueNode,
  14. ): ReadonlyArray<GraphQLError>;