github-pages-deploy-action/node_modules/graphql/validation/rules/NoUnusedFragmentsRule.d.ts

11 lines
381 B
TypeScript
Raw Normal View History

2020-03-07 11:45:40 +08:00
import { ASTVisitor } from '../../language/visitor';
import { ValidationContext } from '../ValidationContext';
/**
* No unused fragments
*
* A GraphQL document is only valid if all fragment definitions are spread
* within operations, or spread within other fragments spread within operations.
*/
export function NoUnusedFragmentsRule(context: ValidationContext): ASTVisitor;