| 
1 | 1 | /**  | 
2 | 2 |  * The set of allowed kind values for AST nodes.  | 
3 | 3 |  */  | 
4 |  | -export const Kind = {  | 
5 |  | -  /** Name */  | 
6 |  | -  NAME: 'Name' as const,  | 
7 |  | - | 
8 |  | -  /** Document */  | 
9 |  | -  DOCUMENT: 'Document' as const,  | 
10 |  | -  OPERATION_DEFINITION: 'OperationDefinition' as const,  | 
11 |  | -  VARIABLE_DEFINITION: 'VariableDefinition' as const,  | 
12 |  | -  SELECTION_SET: 'SelectionSet' as const,  | 
13 |  | -  FIELD: 'Field' as const,  | 
14 |  | -  ARGUMENT: 'Argument' as const,  | 
15 |  | -  FRAGMENT_ARGUMENT: 'FragmentArgument' as const,  | 
16 |  | - | 
17 |  | -  /** Fragments */  | 
18 |  | -  FRAGMENT_SPREAD: 'FragmentSpread' as const,  | 
19 |  | -  INLINE_FRAGMENT: 'InlineFragment' as const,  | 
20 |  | -  FRAGMENT_DEFINITION: 'FragmentDefinition' as const,  | 
21 |  | - | 
22 |  | -  /** Values */  | 
23 |  | -  VARIABLE: 'Variable' as const,  | 
24 |  | -  INT: 'IntValue' as const,  | 
25 |  | -  FLOAT: 'FloatValue' as const,  | 
26 |  | -  STRING: 'StringValue' as const,  | 
27 |  | -  BOOLEAN: 'BooleanValue' as const,  | 
28 |  | -  NULL: 'NullValue' as const,  | 
29 |  | -  ENUM: 'EnumValue' as const,  | 
30 |  | -  LIST: 'ListValue' as const,  | 
31 |  | -  OBJECT: 'ObjectValue' as const,  | 
32 |  | -  OBJECT_FIELD: 'ObjectField' as const,  | 
33 |  | - | 
34 |  | -  /** Directives */  | 
35 |  | -  DIRECTIVE: 'Directive' as const,  | 
36 |  | - | 
37 |  | -  /** Types */  | 
38 |  | -  NAMED_TYPE: 'NamedType' as const,  | 
39 |  | -  LIST_TYPE: 'ListType' as const,  | 
40 |  | -  NON_NULL_TYPE: 'NonNullType' as const,  | 
41 |  | - | 
42 |  | -  /** Type System Definitions */  | 
43 |  | -  SCHEMA_DEFINITION: 'SchemaDefinition' as const,  | 
44 |  | -  OPERATION_TYPE_DEFINITION: 'OperationTypeDefinition' as const,  | 
45 |  | - | 
46 |  | -  /** Type Definitions */  | 
47 |  | -  SCALAR_TYPE_DEFINITION: 'ScalarTypeDefinition' as const,  | 
48 |  | -  OBJECT_TYPE_DEFINITION: 'ObjectTypeDefinition' as const,  | 
49 |  | -  FIELD_DEFINITION: 'FieldDefinition' as const,  | 
50 |  | -  INPUT_VALUE_DEFINITION: 'InputValueDefinition' as const,  | 
51 |  | -  INTERFACE_TYPE_DEFINITION: 'InterfaceTypeDefinition' as const,  | 
52 |  | -  UNION_TYPE_DEFINITION: 'UnionTypeDefinition' as const,  | 
53 |  | -  ENUM_TYPE_DEFINITION: 'EnumTypeDefinition' as const,  | 
54 |  | -  ENUM_VALUE_DEFINITION: 'EnumValueDefinition' as const,  | 
55 |  | -  INPUT_OBJECT_TYPE_DEFINITION: 'InputObjectTypeDefinition' as const,  | 
56 |  | - | 
57 |  | -  /** Directive Definitions */  | 
58 |  | -  DIRECTIVE_DEFINITION: 'DirectiveDefinition' as const,  | 
59 |  | - | 
60 |  | -  /** Type System Extensions */  | 
61 |  | -  SCHEMA_EXTENSION: 'SchemaExtension' as const,  | 
62 |  | - | 
63 |  | -  /** Type Extensions */  | 
64 |  | -  SCALAR_TYPE_EXTENSION: 'ScalarTypeExtension' as const,  | 
65 |  | -  OBJECT_TYPE_EXTENSION: 'ObjectTypeExtension' as const,  | 
66 |  | -  INTERFACE_TYPE_EXTENSION: 'InterfaceTypeExtension' as const,  | 
67 |  | -  UNION_TYPE_EXTENSION: 'UnionTypeExtension' as const,  | 
68 |  | -  ENUM_TYPE_EXTENSION: 'EnumTypeExtension' as const,  | 
69 |  | -  INPUT_OBJECT_TYPE_EXTENSION: 'InputObjectTypeExtension' as const,  | 
70 |  | -};  | 
71 |  | -// eslint-disable-next-line @typescript-eslint/no-redeclare  | 
72 |  | -export type Kind = (typeof Kind)[keyof typeof Kind];  | 
 | 4 | +export * as Kind from './_kinds.js'  | 
0 commit comments