findDeprecatedUsages.d.ts 395 B

12345678910111213
  1. import { GraphQLError } from '../error/GraphQLError';
  2. import { DocumentNode } from '../language/ast';
  3. import { GraphQLSchema } from '../type/schema';
  4. /**
  5. * A validation rule which reports deprecated usages.
  6. *
  7. * Returns a list of GraphQLError instances describing each deprecated use.
  8. */
  9. export function findDeprecatedUsages(
  10. schema: GraphQLSchema,
  11. ast: DocumentNode,
  12. ): GraphQLError[];