predicates.d.ts 951 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
import {
  ASTNode,
  DefinitionNode,
  ExecutableDefinitionNode,
  SelectionNode,
  ValueNode,
  TypeNode,
  TypeSystemDefinitionNode,
  TypeDefinitionNode,
  TypeSystemExtensionNode,
  TypeExtensionNode,
} from './ast';

export function isDefinitionNode(node: ASTNode): node is DefinitionNode;

export function isExecutableDefinitionNode(
  node: ASTNode,
): node is ExecutableDefinitionNode;

export function isSelectionNode(node: ASTNode): node is SelectionNode;

export function isValueNode(node: ASTNode): node is ValueNode;

export function isTypeNode(node: ASTNode): node is TypeNode;

export function isTypeSystemDefinitionNode(
  node: ASTNode,
): node is TypeSystemDefinitionNode;

export function isTypeDefinitionNode(node: ASTNode): node is TypeDefinitionNode;

export function isTypeSystemExtensionNode(
  node: ASTNode,
): node is TypeSystemExtensionNode;

export function isTypeExtensionNode(node: ASTNode): node is TypeExtensionNode;