UNPKG

2.17 kBTypeScriptView Raw
1/**
2 * The set of allowed kind values for AST nodes.
3 */
4declare enum Kind {
5 /** Name */
6 NAME = 'Name',
7 /** Document */
8 DOCUMENT = 'Document',
9 OPERATION_DEFINITION = 'OperationDefinition',
10 VARIABLE_DEFINITION = 'VariableDefinition',
11 SELECTION_SET = 'SelectionSet',
12 FIELD = 'Field',
13 ARGUMENT = 'Argument',
14 /** Fragments */
15 FRAGMENT_SPREAD = 'FragmentSpread',
16 INLINE_FRAGMENT = 'InlineFragment',
17 FRAGMENT_DEFINITION = 'FragmentDefinition',
18 /** Values */
19 VARIABLE = 'Variable',
20 INT = 'IntValue',
21 FLOAT = 'FloatValue',
22 STRING = 'StringValue',
23 BOOLEAN = 'BooleanValue',
24 NULL = 'NullValue',
25 ENUM = 'EnumValue',
26 LIST = 'ListValue',
27 OBJECT = 'ObjectValue',
28 OBJECT_FIELD = 'ObjectField',
29 /** Directives */
30 DIRECTIVE = 'Directive',
31 /** Types */
32 NAMED_TYPE = 'NamedType',
33 LIST_TYPE = 'ListType',
34 NON_NULL_TYPE = 'NonNullType',
35 /** Type System Definitions */
36 SCHEMA_DEFINITION = 'SchemaDefinition',
37 OPERATION_TYPE_DEFINITION = 'OperationTypeDefinition',
38 /** Type Definitions */
39 SCALAR_TYPE_DEFINITION = 'ScalarTypeDefinition',
40 OBJECT_TYPE_DEFINITION = 'ObjectTypeDefinition',
41 FIELD_DEFINITION = 'FieldDefinition',
42 INPUT_VALUE_DEFINITION = 'InputValueDefinition',
43 INTERFACE_TYPE_DEFINITION = 'InterfaceTypeDefinition',
44 UNION_TYPE_DEFINITION = 'UnionTypeDefinition',
45 ENUM_TYPE_DEFINITION = 'EnumTypeDefinition',
46 ENUM_VALUE_DEFINITION = 'EnumValueDefinition',
47 INPUT_OBJECT_TYPE_DEFINITION = 'InputObjectTypeDefinition',
48 /** Directive Definitions */
49 DIRECTIVE_DEFINITION = 'DirectiveDefinition',
50 /** Type System Extensions */
51 SCHEMA_EXTENSION = 'SchemaExtension',
52 /** Type Extensions */
53 SCALAR_TYPE_EXTENSION = 'ScalarTypeExtension',
54 OBJECT_TYPE_EXTENSION = 'ObjectTypeExtension',
55 INTERFACE_TYPE_EXTENSION = 'InterfaceTypeExtension',
56 UNION_TYPE_EXTENSION = 'UnionTypeExtension',
57 ENUM_TYPE_EXTENSION = 'EnumTypeExtension',
58 INPUT_OBJECT_TYPE_EXTENSION = 'InputObjectTypeExtension',
59}
60export { Kind };
61/**
62 * The enum type representing the possible kind values of AST nodes.
63 *
64 * @deprecated Please use `Kind`. Will be remove in v17.
65 */
66export declare type KindEnum = typeof Kind;