ScalarLeafsRule.d.ts 348 B

123456789
  1. import type { ASTVisitor } from '../../language/visitor';
  2. import type { ValidationContext } from '../ValidationContext';
  3. /**
  4. * Scalar leafs
  5. *
  6. * A GraphQL document is valid only if all leaf fields (fields without
  7. * sub selections) are of scalar or enum types.
  8. */
  9. export declare function ScalarLeafsRule(context: ValidationContext): ASTVisitor;