UNPKG

993 BTypeScriptView Raw
1/**
2 * The set of allowed directive location values.
3 */
4declare enum DirectiveLocation {
5 /** Request Definitions */
6 QUERY = 'QUERY',
7 MUTATION = 'MUTATION',
8 SUBSCRIPTION = 'SUBSCRIPTION',
9 FIELD = 'FIELD',
10 FRAGMENT_DEFINITION = 'FRAGMENT_DEFINITION',
11 FRAGMENT_SPREAD = 'FRAGMENT_SPREAD',
12 INLINE_FRAGMENT = 'INLINE_FRAGMENT',
13 VARIABLE_DEFINITION = 'VARIABLE_DEFINITION',
14 /** Type System Definitions */
15 SCHEMA = 'SCHEMA',
16 SCALAR = 'SCALAR',
17 OBJECT = 'OBJECT',
18 FIELD_DEFINITION = 'FIELD_DEFINITION',
19 ARGUMENT_DEFINITION = 'ARGUMENT_DEFINITION',
20 INTERFACE = 'INTERFACE',
21 UNION = 'UNION',
22 ENUM = 'ENUM',
23 ENUM_VALUE = 'ENUM_VALUE',
24 INPUT_OBJECT = 'INPUT_OBJECT',
25 INPUT_FIELD_DEFINITION = 'INPUT_FIELD_DEFINITION',
26}
27export { DirectiveLocation };
28/**
29 * The enum type representing the directive location values.
30 *
31 * @deprecated Please use `DirectiveLocation`. Will be remove in v17.
32 */
33export declare type DirectiveLocationEnum = typeof DirectiveLocation;