-
Notifications
You must be signed in to change notification settings - Fork 2k
Allow for tree-shaking the Kind enum #4268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,65 @@ | ||||||||||||||||||||
/** Name */ | ||||||||||||||||||||
export const NAME = 'Name'; | ||||||||||||||||||||
|
||||||||||||||||||||
/** Document */ | ||||||||||||||||||||
export const DOCUMENT = 'Document'; | ||||||||||||||||||||
export const OPERATION_DEFINITION = 'OperationDefinition'; | ||||||||||||||||||||
export const VARIABLE_DEFINITION = 'VariableDefinition'; | ||||||||||||||||||||
Comment on lines
+5
to
+7
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The reason I did not do these is mainly that it would cause a huge pain with our eslint rule no-redeclare There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Would aslant complain about that? If so though, could we just ignore with an ignore directive at the top of the file? |
||||||||||||||||||||
export const SELECTION_SET = 'SelectionSet'; | ||||||||||||||||||||
export const FIELD = 'Field'; | ||||||||||||||||||||
export const ARGUMENT = 'Argument'; | ||||||||||||||||||||
export const FRAGMENT_ARGUMENT = 'FragmentArgument'; | ||||||||||||||||||||
|
||||||||||||||||||||
/** Fragments */ | ||||||||||||||||||||
export const FRAGMENT_SPREAD = 'FragmentSpread'; | ||||||||||||||||||||
export const INLINE_FRAGMENT = 'InlineFragment'; | ||||||||||||||||||||
export const FRAGMENT_DEFINITION = 'FragmentDefinition'; | ||||||||||||||||||||
|
||||||||||||||||||||
/** Values */ | ||||||||||||||||||||
export const VARIABLE = 'Variable'; | ||||||||||||||||||||
export const INT = 'IntValue'; | ||||||||||||||||||||
export const FLOAT = 'FloatValue'; | ||||||||||||||||||||
export const STRING = 'StringValue'; | ||||||||||||||||||||
export const BOOLEAN = 'BooleanValue'; | ||||||||||||||||||||
export const NULL = 'NullValue'; | ||||||||||||||||||||
export const ENUM = 'EnumValue'; | ||||||||||||||||||||
export const LIST = 'ListValue'; | ||||||||||||||||||||
export const OBJECT = 'ObjectValue'; | ||||||||||||||||||||
export const OBJECT_FIELD = 'ObjectField'; | ||||||||||||||||||||
|
||||||||||||||||||||
/** Directives */ | ||||||||||||||||||||
export const DIRECTIVE = 'Directive'; | ||||||||||||||||||||
|
||||||||||||||||||||
/** Types */ | ||||||||||||||||||||
export const NAMED_TYPE = 'NamedType'; | ||||||||||||||||||||
export const LIST_TYPE = 'ListType'; | ||||||||||||||||||||
export const NON_NULL_TYPE = 'NonNullType'; | ||||||||||||||||||||
|
||||||||||||||||||||
/** Type System Definitions */ | ||||||||||||||||||||
export const SCHEMA_DEFINITION = 'SchemaDefinition'; | ||||||||||||||||||||
export const OPERATION_TYPE_DEFINITION = 'OperationTypeDefinition'; | ||||||||||||||||||||
|
||||||||||||||||||||
/** Type Definitions */ | ||||||||||||||||||||
export const SCALAR_TYPE_DEFINITION = 'ScalarTypeDefinition'; | ||||||||||||||||||||
export const OBJECT_TYPE_DEFINITION = 'ObjectTypeDefinition'; | ||||||||||||||||||||
export const FIELD_DEFINITION = 'FieldDefinition'; | ||||||||||||||||||||
export const INPUT_VALUE_DEFINITION = 'InputValueDefinition'; | ||||||||||||||||||||
export const INTERFACE_TYPE_DEFINITION = 'InterfaceTypeDefinition'; | ||||||||||||||||||||
export const UNION_TYPE_DEFINITION = 'UnionTypeDefinition'; | ||||||||||||||||||||
export const ENUM_TYPE_DEFINITION = 'EnumTypeDefinition'; | ||||||||||||||||||||
export const ENUM_VALUE_DEFINITION = 'EnumValueDefinition'; | ||||||||||||||||||||
export const INPUT_OBJECT_TYPE_DEFINITION = 'InputObjectTypeDefinition'; | ||||||||||||||||||||
|
||||||||||||||||||||
/** Directive Definitions */ | ||||||||||||||||||||
export const DIRECTIVE_DEFINITION = 'DirectiveDefinition'; | ||||||||||||||||||||
|
||||||||||||||||||||
/** Type System Extensions */ | ||||||||||||||||||||
export const SCHEMA_EXTENSION = 'SchemaExtension'; | ||||||||||||||||||||
|
||||||||||||||||||||
/** Type Extensions */ | ||||||||||||||||||||
export const SCALAR_TYPE_EXTENSION = 'ScalarTypeExtension'; | ||||||||||||||||||||
export const OBJECT_TYPE_EXTENSION = 'ObjectTypeExtension'; | ||||||||||||||||||||
export const INTERFACE_TYPE_EXTENSION = 'InterfaceTypeExtension'; | ||||||||||||||||||||
export const UNION_TYPE_EXTENSION = 'UnionTypeExtension'; | ||||||||||||||||||||
export const ENUM_TYPE_EXTENSION = 'EnumTypeExtension'; | ||||||||||||||||||||
export const INPUT_OBJECT_TYPE_EXTENSION = 'InputObjectTypeExtension'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A name of
kinds_
would keep it co-located with the other module that imports from this fwiw. Not sure what's consistent for this repo.