predicates.d.ts 951 B

123456789101112131415161718192021222324252627282930313233343536
  1. import {
  2. ASTNode,
  3. DefinitionNode,
  4. ExecutableDefinitionNode,
  5. SelectionNode,
  6. ValueNode,
  7. TypeNode,
  8. TypeSystemDefinitionNode,
  9. TypeDefinitionNode,
  10. TypeSystemExtensionNode,
  11. TypeExtensionNode,
  12. } from './ast';
  13. export function isDefinitionNode(node: ASTNode): node is DefinitionNode;
  14. export function isExecutableDefinitionNode(
  15. node: ASTNode,
  16. ): node is ExecutableDefinitionNode;
  17. export function isSelectionNode(node: ASTNode): node is SelectionNode;
  18. export function isValueNode(node: ASTNode): node is ValueNode;
  19. export function isTypeNode(node: ASTNode): node is TypeNode;
  20. export function isTypeSystemDefinitionNode(
  21. node: ASTNode,
  22. ): node is TypeSystemDefinitionNode;
  23. export function isTypeDefinitionNode(node: ASTNode): node is TypeDefinitionNode;
  24. export function isTypeSystemExtensionNode(
  25. node: ASTNode,
  26. ): node is TypeSystemExtensionNode;
  27. export function isTypeExtensionNode(node: ASTNode): node is TypeExtensionNode;