UNPKG

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