graphql 0.0.1-test.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/NotSupportedTSVersion.d.ts +1 -0
- package/README.md +158 -0
- package/error/GraphQLError.d.ts +142 -0
- package/error/GraphQLError.js +267 -0
- package/error/GraphQLError.mjs +253 -0
- package/error/index.d.ts +7 -0
- package/error/index.js +41 -0
- package/error/index.mjs +3 -0
- package/error/locatedError.d.ts +13 -0
- package/error/locatedError.js +40 -0
- package/error/locatedError.mjs +32 -0
- package/error/syntaxError.d.ts +11 -0
- package/error/syntaxError.js +21 -0
- package/error/syntaxError.mjs +11 -0
- package/execution/collectFields.d.ts +45 -0
- package/execution/collectFields.js +229 -0
- package/execution/collectFields.mjs +213 -0
- package/execution/execute.d.ts +185 -0
- package/execution/execute.js +1016 -0
- package/execution/execute.mjs +988 -0
- package/execution/index.d.ts +14 -0
- package/execution/index.js +67 -0
- package/execution/index.mjs +9 -0
- package/execution/mapAsyncIterator.d.ts +9 -0
- package/execution/mapAsyncIterator.js +68 -0
- package/execution/mapAsyncIterator.mjs +61 -0
- package/execution/subscribe.d.ts +68 -0
- package/execution/subscribe.js +261 -0
- package/execution/subscribe.mjs +239 -0
- package/execution/values.d.ts +81 -0
- package/execution/values.js +292 -0
- package/execution/values.mjs +255 -0
- package/graphql.d.ts +67 -0
- package/graphql.js +96 -0
- package/graphql.mjs +122 -0
- package/index.d.ts +411 -0
- package/index.js +1263 -0
- package/index.mjs +254 -0
- package/jsutils/Maybe.d.ts +2 -0
- package/jsutils/Maybe.js +5 -0
- package/jsutils/Maybe.mjs +1 -0
- package/jsutils/ObjMap.d.ts +16 -0
- package/jsutils/ObjMap.js +5 -0
- package/jsutils/ObjMap.mjs +1 -0
- package/jsutils/Path.d.ts +20 -0
- package/jsutils/Path.js +33 -0
- package/jsutils/Path.mjs +25 -0
- package/jsutils/PromiseOrValue.d.ts +1 -0
- package/jsutils/PromiseOrValue.js +5 -0
- package/jsutils/PromiseOrValue.mjs +1 -0
- package/jsutils/devAssert.d.ts +1 -0
- package/jsutils/devAssert.js +14 -0
- package/jsutils/devAssert.mjs +7 -0
- package/jsutils/didYouMean.d.ts +8 -0
- package/jsutils/didYouMean.js +38 -0
- package/jsutils/didYouMean.mjs +32 -0
- package/jsutils/groupBy.d.ts +7 -0
- package/jsutils/groupBy.js +26 -0
- package/jsutils/groupBy.mjs +19 -0
- package/jsutils/identityFunc.d.ts +4 -0
- package/jsutils/identityFunc.js +13 -0
- package/jsutils/identityFunc.mjs +6 -0
- package/jsutils/inspect.d.ts +4 -0
- package/jsutils/inspect.js +121 -0
- package/jsutils/inspect.mjs +115 -0
- package/jsutils/instanceOf.d.ts +16 -0
- package/jsutils/instanceOf.js +60 -0
- package/jsutils/instanceOf.mjs +52 -0
- package/jsutils/invariant.d.ts +4 -0
- package/jsutils/invariant.js +16 -0
- package/jsutils/invariant.mjs +9 -0
- package/jsutils/isAsyncIterable.d.ts +7 -0
- package/jsutils/isAsyncIterable.js +18 -0
- package/jsutils/isAsyncIterable.mjs +11 -0
- package/jsutils/isIterableObject.d.ts +20 -0
- package/jsutils/isIterableObject.js +32 -0
- package/jsutils/isIterableObject.mjs +25 -0
- package/jsutils/isObjectLike.d.ts +7 -0
- package/jsutils/isObjectLike.js +14 -0
- package/jsutils/isObjectLike.mjs +7 -0
- package/jsutils/isPromise.d.ts +5 -0
- package/jsutils/isPromise.js +17 -0
- package/jsutils/isPromise.mjs +10 -0
- package/jsutils/keyMap.d.ts +32 -0
- package/jsutils/keyMap.js +43 -0
- package/jsutils/keyMap.mjs +36 -0
- package/jsutils/keyValMap.d.ts +23 -0
- package/jsutils/keyValMap.js +33 -0
- package/jsutils/keyValMap.mjs +26 -0
- package/jsutils/mapValue.d.ts +9 -0
- package/jsutils/mapValue.js +20 -0
- package/jsutils/mapValue.mjs +13 -0
- package/jsutils/memoize3.d.ts +9 -0
- package/jsutils/memoize3.js +41 -0
- package/jsutils/memoize3.mjs +34 -0
- package/jsutils/naturalCompare.d.ts +8 -0
- package/jsutils/naturalCompare.js +69 -0
- package/jsutils/naturalCompare.mjs +61 -0
- package/jsutils/printPathArray.d.ts +6 -0
- package/jsutils/printPathArray.js +17 -0
- package/jsutils/printPathArray.mjs +10 -0
- package/jsutils/promiseForObject.d.ts +11 -0
- package/jsutils/promiseForObject.js +25 -0
- package/jsutils/promiseForObject.mjs +18 -0
- package/jsutils/promiseReduce.d.ts +13 -0
- package/jsutils/promiseReduce.js +27 -0
- package/jsutils/promiseReduce.mjs +20 -0
- package/jsutils/suggestionList.d.ts +8 -0
- package/jsutils/suggestionList.js +139 -0
- package/jsutils/suggestionList.mjs +130 -0
- package/jsutils/toError.d.ts +4 -0
- package/jsutils/toError.js +25 -0
- package/jsutils/toError.mjs +18 -0
- package/jsutils/toObjMap.d.ts +5 -0
- package/jsutils/toObjMap.js +24 -0
- package/jsutils/toObjMap.mjs +17 -0
- package/language/ast.d.ts +536 -0
- package/language/ast.js +224 -0
- package/language/ast.mjs +206 -0
- package/language/blockString.d.ts +28 -0
- package/language/blockString.js +195 -0
- package/language/blockString.mjs +178 -0
- package/language/characterClasses.d.ts +47 -0
- package/language/characterClasses.js +75 -0
- package/language/characterClasses.mjs +64 -0
- package/language/directiveLocation.d.ts +32 -0
- package/language/directiveLocation.js +40 -0
- package/language/directiveLocation.mjs +31 -0
- package/language/index.d.ts +97 -0
- package/language/index.js +215 -0
- package/language/index.mjs +29 -0
- package/language/kinds.d.ts +65 -0
- package/language/kinds.js +64 -0
- package/language/kinds.mjs +55 -0
- package/language/lexer.d.ts +45 -0
- package/language/lexer.js +1006 -0
- package/language/lexer.mjs +902 -0
- package/language/location.d.ts +16 -0
- package/language/location.js +38 -0
- package/language/location.mjs +30 -0
- package/language/parser.d.ts +554 -0
- package/language/parser.js +1567 -0
- package/language/parser.mjs +1524 -0
- package/language/predicates.d.ts +33 -0
- package/language/predicates.js +109 -0
- package/language/predicates.mjs +81 -0
- package/language/printLocation.d.ts +14 -0
- package/language/printLocation.js +74 -0
- package/language/printLocation.mjs +66 -0
- package/language/printString.d.ts +5 -0
- package/language/printString.js +183 -0
- package/language/printString.mjs +176 -0
- package/language/printer.d.ts +6 -0
- package/language/printer.js +351 -0
- package/language/printer.mjs +339 -0
- package/language/source.d.ts +25 -0
- package/language/source.js +65 -0
- package/language/source.mjs +50 -0
- package/language/tokenKind.d.ts +34 -0
- package/language/tokenKind.js +44 -0
- package/language/tokenKind.mjs +35 -0
- package/language/visitor.d.ts +194 -0
- package/language/visitor.js +377 -0
- package/language/visitor.mjs +361 -0
- package/package.json +40 -0
- package/subscription/index.d.ts +19 -0
- package/subscription/index.js +19 -0
- package/subscription/index.mjs +19 -0
- package/type/assertName.d.ts +10 -0
- package/type/assertName.js +59 -0
- package/type/assertName.mjs +44 -0
- package/type/definition.d.ts +917 -0
- package/type/definition.js +1329 -0
- package/type/definition.mjs +1167 -0
- package/type/directives.d.ts +86 -0
- package/type/directives.js +224 -0
- package/type/directives.mjs +190 -0
- package/type/index.d.ts +150 -0
- package/type/index.js +547 -0
- package/type/index.mjs +103 -0
- package/type/introspection.d.ts +29 -0
- package/type/introspection.js +617 -0
- package/type/introspection.mjs +550 -0
- package/type/scalars.d.ts +19 -0
- package/type/scalars.js +359 -0
- package/type/scalars.mjs +299 -0
- package/type/schema.d.ts +170 -0
- package/type/schema.js +402 -0
- package/type/schema.mjs +381 -0
- package/type/validate.d.ts +17 -0
- package/type/validate.js +672 -0
- package/type/validate.mjs +647 -0
- package/utilities/TypeInfo.d.ts +67 -0
- package/utilities/TypeInfo.js +418 -0
- package/utilities/TypeInfo.mjs +395 -0
- package/utilities/assertValidName.d.ts +13 -0
- package/utilities/assertValidName.js +51 -0
- package/utilities/assertValidName.mjs +40 -0
- package/utilities/astFromValue.d.ts +28 -0
- package/utilities/astFromValue.js +190 -0
- package/utilities/astFromValue.mjs +177 -0
- package/utilities/buildASTSchema.d.ts +35 -0
- package/utilities/buildASTSchema.js +115 -0
- package/utilities/buildASTSchema.mjs +97 -0
- package/utilities/buildClientSchema.d.ts +19 -0
- package/utilities/buildClientSchema.js +386 -0
- package/utilities/buildClientSchema.mjs +363 -0
- package/utilities/coerceInputValue.d.ts +16 -0
- package/utilities/coerceInputValue.js +191 -0
- package/utilities/coerceInputValue.mjs +172 -0
- package/utilities/concatAST.d.ts +9 -0
- package/utilities/concatAST.js +26 -0
- package/utilities/concatAST.mjs +19 -0
- package/utilities/extendSchema.d.ts +40 -0
- package/utilities/extendSchema.js +798 -0
- package/utilities/extendSchema.mjs +789 -0
- package/utilities/findBreakingChanges.d.ts +51 -0
- package/utilities/findBreakingChanges.js +547 -0
- package/utilities/findBreakingChanges.mjs +516 -0
- package/utilities/getIntrospectionQuery.d.ts +182 -0
- package/utilities/getIntrospectionQuery.js +134 -0
- package/utilities/getIntrospectionQuery.mjs +127 -0
- package/utilities/getOperationAST.d.ts +11 -0
- package/utilities/getOperationAST.js +43 -0
- package/utilities/getOperationAST.mjs +36 -0
- package/utilities/getOperationRootType.d.ts +15 -0
- package/utilities/getOperationRootType.js +59 -0
- package/utilities/getOperationRootType.mjs +52 -0
- package/utilities/index.d.ts +61 -0
- package/utilities/index.js +233 -0
- package/utilities/index.mjs +55 -0
- package/utilities/introspectionFromSchema.d.ts +18 -0
- package/utilities/introspectionFromSchema.js +42 -0
- package/utilities/introspectionFromSchema.mjs +30 -0
- package/utilities/lexicographicSortSchema.d.ts +9 -0
- package/utilities/lexicographicSortSchema.js +177 -0
- package/utilities/lexicographicSortSchema.mjs +172 -0
- package/utilities/printSchema.d.ts +5 -0
- package/utilities/printSchema.js +333 -0
- package/utilities/printSchema.mjs +309 -0
- package/utilities/separateOperations.d.ts +11 -0
- package/utilities/separateOperations.js +88 -0
- package/utilities/separateOperations.mjs +80 -0
- package/utilities/sortValueNode.d.ts +9 -0
- package/utilities/sortValueNode.js +47 -0
- package/utilities/sortValueNode.mjs +39 -0
- package/utilities/stripIgnoredCharacters.d.ts +62 -0
- package/utilities/stripIgnoredCharacters.js +121 -0
- package/utilities/stripIgnoredCharacters.mjs +104 -0
- package/utilities/typeComparators.d.ts +32 -0
- package/utilities/typeComparators.js +116 -0
- package/utilities/typeComparators.mjs +106 -0
- package/utilities/typeFromAST.d.ts +32 -0
- package/utilities/typeFromAST.js +27 -0
- package/utilities/typeFromAST.mjs +18 -0
- package/utilities/typedQueryDocumentNode.d.ts +22 -0
- package/utilities/typedQueryDocumentNode.js +5 -0
- package/utilities/typedQueryDocumentNode.mjs +1 -0
- package/utilities/valueFromAST.d.ts +29 -0
- package/utilities/valueFromAST.js +185 -0
- package/utilities/valueFromAST.mjs +172 -0
- package/utilities/valueFromASTUntyped.d.ts +23 -0
- package/utilities/valueFromASTUntyped.js +61 -0
- package/utilities/valueFromASTUntyped.mjs +53 -0
- package/validation/ValidationContext.d.ts +95 -0
- package/validation/ValidationContext.js +232 -0
- package/validation/ValidationContext.mjs +212 -0
- package/validation/index.d.ts +40 -0
- package/validation/index.js +317 -0
- package/validation/index.mjs +68 -0
- package/validation/rules/ExecutableDefinitionsRule.d.ts +13 -0
- package/validation/rules/ExecutableDefinitionsRule.js +44 -0
- package/validation/rules/ExecutableDefinitionsRule.mjs +35 -0
- package/validation/rules/FieldsOnCorrectTypeRule.d.ts +13 -0
- package/validation/rules/FieldsOnCorrectTypeRule.js +143 -0
- package/validation/rules/FieldsOnCorrectTypeRule.mjs +125 -0
- package/validation/rules/FragmentsOnCompositeTypesRule.d.ts +14 -0
- package/validation/rules/FragmentsOnCompositeTypesRule.js +65 -0
- package/validation/rules/FragmentsOnCompositeTypesRule.mjs +49 -0
- package/validation/rules/KnownArgumentNamesRule.d.ts +23 -0
- package/validation/rules/KnownArgumentNamesRule.js +116 -0
- package/validation/rules/KnownArgumentNamesRule.mjs +98 -0
- package/validation/rules/KnownDirectivesRule.d.ts +16 -0
- package/validation/rules/KnownDirectivesRule.js +163 -0
- package/validation/rules/KnownDirectivesRule.mjs +146 -0
- package/validation/rules/KnownFragmentNamesRule.d.ts +13 -0
- package/validation/rules/KnownFragmentNamesRule.js +34 -0
- package/validation/rules/KnownFragmentNamesRule.mjs +24 -0
- package/validation/rules/KnownTypeNamesRule.d.ts +16 -0
- package/validation/rules/KnownTypeNamesRule.js +87 -0
- package/validation/rules/KnownTypeNamesRule.mjs +75 -0
- package/validation/rules/LoneAnonymousOperationRule.d.ts +13 -0
- package/validation/rules/LoneAnonymousOperationRule.js +40 -0
- package/validation/rules/LoneAnonymousOperationRule.mjs +32 -0
- package/validation/rules/LoneSchemaDefinitionRule.d.ts +10 -0
- package/validation/rules/LoneSchemaDefinitionRule.js +63 -0
- package/validation/rules/LoneSchemaDefinitionRule.mjs +53 -0
- package/validation/rules/NoFragmentCyclesRule.d.ts +13 -0
- package/validation/rules/NoFragmentCyclesRule.js +83 -0
- package/validation/rules/NoFragmentCyclesRule.mjs +76 -0
- package/validation/rules/NoUndefinedVariablesRule.d.ts +13 -0
- package/validation/rules/NoUndefinedVariablesRule.js +50 -0
- package/validation/rules/NoUndefinedVariablesRule.mjs +43 -0
- package/validation/rules/NoUnusedFragmentsRule.d.ts +13 -0
- package/validation/rules/NoUnusedFragmentsRule.js +59 -0
- package/validation/rules/NoUnusedFragmentsRule.mjs +52 -0
- package/validation/rules/NoUnusedVariablesRule.d.ts +13 -0
- package/validation/rules/NoUnusedVariablesRule.js +55 -0
- package/validation/rules/NoUnusedVariablesRule.mjs +48 -0
- package/validation/rules/OverlappingFieldsCanBeMergedRule-old.js +805 -0
- package/validation/rules/OverlappingFieldsCanBeMergedRule-old.mjs +788 -0
- package/validation/rules/OverlappingFieldsCanBeMergedRule.d.ts +14 -0
- package/validation/rules/OverlappingFieldsCanBeMergedRule.js +805 -0
- package/validation/rules/OverlappingFieldsCanBeMergedRule.mjs +788 -0
- package/validation/rules/PossibleFragmentSpreadsRule.d.ts +12 -0
- package/validation/rules/PossibleFragmentSpreadsRule.js +91 -0
- package/validation/rules/PossibleFragmentSpreadsRule.mjs +69 -0
- package/validation/rules/PossibleTypeExtensionsRule.d.ts +10 -0
- package/validation/rules/PossibleTypeExtensionsRule.js +167 -0
- package/validation/rules/PossibleTypeExtensionsRule.mjs +147 -0
- package/validation/rules/ProvidedRequiredArgumentsRule.d.ts +20 -0
- package/validation/rules/ProvidedRequiredArgumentsRule.js +158 -0
- package/validation/rules/ProvidedRequiredArgumentsRule.mjs +138 -0
- package/validation/rules/ScalarLeafsRule.d.ts +9 -0
- package/validation/rules/ScalarLeafsRule.js +51 -0
- package/validation/rules/ScalarLeafsRule.mjs +42 -0
- package/validation/rules/SingleFieldSubscriptionsRule.d.ts +13 -0
- package/validation/rules/SingleFieldSubscriptionsRule.js +82 -0
- package/validation/rules/SingleFieldSubscriptionsRule.mjs +73 -0
- package/validation/rules/UniqueArgumentDefinitionNamesRule.d.ts +11 -0
- package/validation/rules/UniqueArgumentDefinitionNamesRule.js +90 -0
- package/validation/rules/UniqueArgumentDefinitionNamesRule.mjs +79 -0
- package/validation/rules/UniqueArgumentNamesRule.d.ts +13 -0
- package/validation/rules/UniqueArgumentNamesRule.js +53 -0
- package/validation/rules/UniqueArgumentNamesRule.mjs +42 -0
- package/validation/rules/UniqueDirectiveNamesRule.d.ts +10 -0
- package/validation/rules/UniqueDirectiveNamesRule.js +50 -0
- package/validation/rules/UniqueDirectiveNamesRule.mjs +43 -0
- package/validation/rules/UniqueDirectivesPerLocationRule.d.ts +16 -0
- package/validation/rules/UniqueDirectivesPerLocationRule.js +93 -0
- package/validation/rules/UniqueDirectivesPerLocationRule.mjs +83 -0
- package/validation/rules/UniqueEnumValueNamesRule.d.ts +10 -0
- package/validation/rules/UniqueEnumValueNamesRule.js +71 -0
- package/validation/rules/UniqueEnumValueNamesRule.mjs +60 -0
- package/validation/rules/UniqueFieldDefinitionNamesRule.d.ts +10 -0
- package/validation/rules/UniqueFieldDefinitionNamesRule.js +83 -0
- package/validation/rules/UniqueFieldDefinitionNamesRule.mjs +75 -0
- package/validation/rules/UniqueFragmentNamesRule.d.ts +12 -0
- package/validation/rules/UniqueFragmentNamesRule.js +39 -0
- package/validation/rules/UniqueFragmentNamesRule.mjs +32 -0
- package/validation/rules/UniqueInputFieldNamesRule.d.ts +13 -0
- package/validation/rules/UniqueInputFieldNamesRule.js +52 -0
- package/validation/rules/UniqueInputFieldNamesRule.mjs +44 -0
- package/validation/rules/UniqueOperationNamesRule.d.ts +12 -0
- package/validation/rules/UniqueOperationNamesRule.js +41 -0
- package/validation/rules/UniqueOperationNamesRule.mjs +34 -0
- package/validation/rules/UniqueOperationTypesRule.d.ts +10 -0
- package/validation/rules/UniqueOperationTypesRule.js +67 -0
- package/validation/rules/UniqueOperationTypesRule.mjs +60 -0
- package/validation/rules/UniqueTypeNamesRule.d.ts +10 -0
- package/validation/rules/UniqueTypeNamesRule.js +53 -0
- package/validation/rules/UniqueTypeNamesRule.mjs +46 -0
- package/validation/rules/UniqueVariableNamesRule.d.ts +10 -0
- package/validation/rules/UniqueVariableNamesRule.js +47 -0
- package/validation/rules/UniqueVariableNamesRule.mjs +39 -0
- package/validation/rules/ValuesOfCorrectTypeRule.d.ts +13 -0
- package/validation/rules/ValuesOfCorrectTypeRule.js +183 -0
- package/validation/rules/ValuesOfCorrectTypeRule.mjs +164 -0
- package/validation/rules/VariablesAreInputTypesRule.d.ts +13 -0
- package/validation/rules/VariablesAreInputTypesRule.js +44 -0
- package/validation/rules/VariablesAreInputTypesRule.mjs +31 -0
- package/validation/rules/VariablesInAllowedPositionRule.d.ts +12 -0
- package/validation/rules/VariablesInAllowedPositionRule.js +114 -0
- package/validation/rules/VariablesInAllowedPositionRule.mjs +95 -0
- package/validation/rules/custom/NoDeprecatedCustomRule.d.ts +15 -0
- package/validation/rules/custom/NoDeprecatedCustomRule.js +121 -0
- package/validation/rules/custom/NoDeprecatedCustomRule.mjs +107 -0
- package/validation/rules/custom/NoSchemaIntrospectionCustomRule.d.ts +15 -0
- package/validation/rules/custom/NoSchemaIntrospectionCustomRule.js +39 -0
- package/validation/rules/custom/NoSchemaIntrospectionCustomRule.mjs +30 -0
- package/validation/specifiedRules.d.ts +12 -0
- package/validation/specifiedRules.js +160 -0
- package/validation/specifiedRules.mjs +123 -0
- package/validation/validate.d.ts +61 -0
- package/validation/validate.js +151 -0
- package/validation/validate.mjs +133 -0
- package/version.d.ts +13 -0
- package/version.js +25 -0
- package/version.mjs +17 -0
|
@@ -0,0 +1,536 @@
|
|
|
1
|
+
import type { Kind } from './kinds';
|
|
2
|
+
import type { Source } from './source';
|
|
3
|
+
import type { TokenKind } from './tokenKind';
|
|
4
|
+
/**
|
|
5
|
+
* Contains a range of UTF-8 character offsets and token references that
|
|
6
|
+
* identify the region of the source from which the AST derived.
|
|
7
|
+
*/
|
|
8
|
+
export declare class Location {
|
|
9
|
+
/**
|
|
10
|
+
* The character offset at which this Node begins.
|
|
11
|
+
*/
|
|
12
|
+
readonly start: number;
|
|
13
|
+
/**
|
|
14
|
+
* The character offset at which this Node ends.
|
|
15
|
+
*/
|
|
16
|
+
readonly end: number;
|
|
17
|
+
/**
|
|
18
|
+
* The Token at which this Node begins.
|
|
19
|
+
*/
|
|
20
|
+
readonly startToken: Token;
|
|
21
|
+
/**
|
|
22
|
+
* The Token at which this Node ends.
|
|
23
|
+
*/
|
|
24
|
+
readonly endToken: Token;
|
|
25
|
+
/**
|
|
26
|
+
* The Source document the AST represents.
|
|
27
|
+
*/
|
|
28
|
+
readonly source: Source;
|
|
29
|
+
constructor(startToken: Token, endToken: Token, source: Source);
|
|
30
|
+
get [Symbol.toStringTag](): string;
|
|
31
|
+
toJSON(): {
|
|
32
|
+
start: number;
|
|
33
|
+
end: number;
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Represents a range of characters represented by a lexical token
|
|
38
|
+
* within a Source.
|
|
39
|
+
*/
|
|
40
|
+
export declare class Token {
|
|
41
|
+
/**
|
|
42
|
+
* The kind of Token.
|
|
43
|
+
*/
|
|
44
|
+
readonly kind: TokenKind;
|
|
45
|
+
/**
|
|
46
|
+
* The character offset at which this Node begins.
|
|
47
|
+
*/
|
|
48
|
+
readonly start: number;
|
|
49
|
+
/**
|
|
50
|
+
* The character offset at which this Node ends.
|
|
51
|
+
*/
|
|
52
|
+
readonly end: number;
|
|
53
|
+
/**
|
|
54
|
+
* The 1-indexed line number on which this Token appears.
|
|
55
|
+
*/
|
|
56
|
+
readonly line: number;
|
|
57
|
+
/**
|
|
58
|
+
* The 1-indexed column number at which this Token begins.
|
|
59
|
+
*/
|
|
60
|
+
readonly column: number;
|
|
61
|
+
/**
|
|
62
|
+
* For non-punctuation tokens, represents the interpreted value of the token.
|
|
63
|
+
*
|
|
64
|
+
* Note: is undefined for punctuation tokens, but typed as string for
|
|
65
|
+
* convenience in the parser.
|
|
66
|
+
*/
|
|
67
|
+
readonly value: string;
|
|
68
|
+
/**
|
|
69
|
+
* Tokens exist as nodes in a double-linked-list amongst all tokens
|
|
70
|
+
* including ignored tokens. <SOF> is always the first node and <EOF>
|
|
71
|
+
* the last.
|
|
72
|
+
*/
|
|
73
|
+
readonly prev: Token | null;
|
|
74
|
+
readonly next: Token | null;
|
|
75
|
+
constructor(
|
|
76
|
+
kind: TokenKind,
|
|
77
|
+
start: number,
|
|
78
|
+
end: number,
|
|
79
|
+
line: number,
|
|
80
|
+
column: number,
|
|
81
|
+
value?: string,
|
|
82
|
+
);
|
|
83
|
+
get [Symbol.toStringTag](): string;
|
|
84
|
+
toJSON(): {
|
|
85
|
+
kind: TokenKind;
|
|
86
|
+
value?: string;
|
|
87
|
+
line: number;
|
|
88
|
+
column: number;
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* The list of all possible AST node types.
|
|
93
|
+
*/
|
|
94
|
+
export declare type ASTNode =
|
|
95
|
+
| NameNode
|
|
96
|
+
| DocumentNode
|
|
97
|
+
| OperationDefinitionNode
|
|
98
|
+
| VariableDefinitionNode
|
|
99
|
+
| VariableNode
|
|
100
|
+
| SelectionSetNode
|
|
101
|
+
| FieldNode
|
|
102
|
+
| ArgumentNode
|
|
103
|
+
| FragmentSpreadNode
|
|
104
|
+
| InlineFragmentNode
|
|
105
|
+
| FragmentDefinitionNode
|
|
106
|
+
| IntValueNode
|
|
107
|
+
| FloatValueNode
|
|
108
|
+
| StringValueNode
|
|
109
|
+
| BooleanValueNode
|
|
110
|
+
| NullValueNode
|
|
111
|
+
| EnumValueNode
|
|
112
|
+
| ListValueNode
|
|
113
|
+
| ObjectValueNode
|
|
114
|
+
| ObjectFieldNode
|
|
115
|
+
| DirectiveNode
|
|
116
|
+
| NamedTypeNode
|
|
117
|
+
| ListTypeNode
|
|
118
|
+
| NonNullTypeNode
|
|
119
|
+
| SchemaDefinitionNode
|
|
120
|
+
| OperationTypeDefinitionNode
|
|
121
|
+
| ScalarTypeDefinitionNode
|
|
122
|
+
| ObjectTypeDefinitionNode
|
|
123
|
+
| FieldDefinitionNode
|
|
124
|
+
| InputValueDefinitionNode
|
|
125
|
+
| InterfaceTypeDefinitionNode
|
|
126
|
+
| UnionTypeDefinitionNode
|
|
127
|
+
| EnumTypeDefinitionNode
|
|
128
|
+
| EnumValueDefinitionNode
|
|
129
|
+
| InputObjectTypeDefinitionNode
|
|
130
|
+
| DirectiveDefinitionNode
|
|
131
|
+
| SchemaExtensionNode
|
|
132
|
+
| ScalarTypeExtensionNode
|
|
133
|
+
| ObjectTypeExtensionNode
|
|
134
|
+
| InterfaceTypeExtensionNode
|
|
135
|
+
| UnionTypeExtensionNode
|
|
136
|
+
| EnumTypeExtensionNode
|
|
137
|
+
| InputObjectTypeExtensionNode;
|
|
138
|
+
/**
|
|
139
|
+
* Utility type listing all nodes indexed by their kind.
|
|
140
|
+
*/
|
|
141
|
+
export declare type ASTKindToNode = {
|
|
142
|
+
[NodeT in ASTNode as NodeT['kind']]: NodeT;
|
|
143
|
+
};
|
|
144
|
+
/**
|
|
145
|
+
* @internal
|
|
146
|
+
*/
|
|
147
|
+
export declare const QueryDocumentKeys: {
|
|
148
|
+
[NodeT in ASTNode as NodeT['kind']]: ReadonlyArray<keyof NodeT>;
|
|
149
|
+
};
|
|
150
|
+
/**
|
|
151
|
+
* @internal
|
|
152
|
+
*/
|
|
153
|
+
export declare function isNode(maybeNode: any): maybeNode is ASTNode;
|
|
154
|
+
/** Name */
|
|
155
|
+
export interface NameNode {
|
|
156
|
+
readonly kind: Kind.NAME;
|
|
157
|
+
readonly loc?: Location;
|
|
158
|
+
readonly value: string;
|
|
159
|
+
}
|
|
160
|
+
/** Document */
|
|
161
|
+
export interface DocumentNode {
|
|
162
|
+
readonly kind: Kind.DOCUMENT;
|
|
163
|
+
readonly loc?: Location;
|
|
164
|
+
readonly definitions: ReadonlyArray<DefinitionNode>;
|
|
165
|
+
}
|
|
166
|
+
export declare type DefinitionNode =
|
|
167
|
+
| ExecutableDefinitionNode
|
|
168
|
+
| TypeSystemDefinitionNode
|
|
169
|
+
| TypeSystemExtensionNode;
|
|
170
|
+
export declare type ExecutableDefinitionNode =
|
|
171
|
+
| OperationDefinitionNode
|
|
172
|
+
| FragmentDefinitionNode;
|
|
173
|
+
export interface OperationDefinitionNode {
|
|
174
|
+
readonly kind: Kind.OPERATION_DEFINITION;
|
|
175
|
+
readonly loc?: Location;
|
|
176
|
+
readonly operation: OperationTypeNode;
|
|
177
|
+
readonly name?: NameNode;
|
|
178
|
+
readonly variableDefinitions?: ReadonlyArray<VariableDefinitionNode>;
|
|
179
|
+
readonly directives?: ReadonlyArray<DirectiveNode>;
|
|
180
|
+
readonly selectionSet: SelectionSetNode;
|
|
181
|
+
}
|
|
182
|
+
export declare enum OperationTypeNode {
|
|
183
|
+
QUERY = 'query',
|
|
184
|
+
MUTATION = 'mutation',
|
|
185
|
+
SUBSCRIPTION = 'subscription',
|
|
186
|
+
}
|
|
187
|
+
export interface VariableDefinitionNode {
|
|
188
|
+
readonly kind: Kind.VARIABLE_DEFINITION;
|
|
189
|
+
readonly loc?: Location;
|
|
190
|
+
readonly variable: VariableNode;
|
|
191
|
+
readonly type: TypeNode;
|
|
192
|
+
readonly defaultValue?: ConstValueNode;
|
|
193
|
+
readonly directives?: ReadonlyArray<ConstDirectiveNode>;
|
|
194
|
+
}
|
|
195
|
+
export interface VariableNode {
|
|
196
|
+
readonly kind: Kind.VARIABLE;
|
|
197
|
+
readonly loc?: Location;
|
|
198
|
+
readonly name: NameNode;
|
|
199
|
+
}
|
|
200
|
+
export interface SelectionSetNode {
|
|
201
|
+
kind: Kind.SELECTION_SET;
|
|
202
|
+
loc?: Location;
|
|
203
|
+
selections: ReadonlyArray<SelectionNode>;
|
|
204
|
+
}
|
|
205
|
+
export declare type SelectionNode =
|
|
206
|
+
| FieldNode
|
|
207
|
+
| FragmentSpreadNode
|
|
208
|
+
| InlineFragmentNode;
|
|
209
|
+
export interface FieldNode {
|
|
210
|
+
readonly kind: Kind.FIELD;
|
|
211
|
+
readonly loc?: Location;
|
|
212
|
+
readonly alias?: NameNode;
|
|
213
|
+
readonly name: NameNode;
|
|
214
|
+
readonly arguments?: ReadonlyArray<ArgumentNode>;
|
|
215
|
+
readonly directives?: ReadonlyArray<DirectiveNode>;
|
|
216
|
+
readonly selectionSet?: SelectionSetNode;
|
|
217
|
+
}
|
|
218
|
+
export interface ArgumentNode {
|
|
219
|
+
readonly kind: Kind.ARGUMENT;
|
|
220
|
+
readonly loc?: Location;
|
|
221
|
+
readonly name: NameNode;
|
|
222
|
+
readonly value: ValueNode;
|
|
223
|
+
}
|
|
224
|
+
export interface ConstArgumentNode {
|
|
225
|
+
readonly kind: Kind.ARGUMENT;
|
|
226
|
+
readonly loc?: Location;
|
|
227
|
+
readonly name: NameNode;
|
|
228
|
+
readonly value: ConstValueNode;
|
|
229
|
+
}
|
|
230
|
+
/** Fragments */
|
|
231
|
+
export interface FragmentSpreadNode {
|
|
232
|
+
readonly kind: Kind.FRAGMENT_SPREAD;
|
|
233
|
+
readonly loc?: Location;
|
|
234
|
+
readonly name: NameNode;
|
|
235
|
+
readonly directives?: ReadonlyArray<DirectiveNode>;
|
|
236
|
+
}
|
|
237
|
+
export interface InlineFragmentNode {
|
|
238
|
+
readonly kind: Kind.INLINE_FRAGMENT;
|
|
239
|
+
readonly loc?: Location;
|
|
240
|
+
readonly typeCondition?: NamedTypeNode;
|
|
241
|
+
readonly directives?: ReadonlyArray<DirectiveNode>;
|
|
242
|
+
readonly selectionSet: SelectionSetNode;
|
|
243
|
+
}
|
|
244
|
+
export interface FragmentDefinitionNode {
|
|
245
|
+
readonly kind: Kind.FRAGMENT_DEFINITION;
|
|
246
|
+
readonly loc?: Location;
|
|
247
|
+
readonly name: NameNode;
|
|
248
|
+
/** @deprecated variableDefinitions will be removed in v17.0.0 */
|
|
249
|
+
readonly variableDefinitions?: ReadonlyArray<VariableDefinitionNode>;
|
|
250
|
+
readonly typeCondition: NamedTypeNode;
|
|
251
|
+
readonly directives?: ReadonlyArray<DirectiveNode>;
|
|
252
|
+
readonly selectionSet: SelectionSetNode;
|
|
253
|
+
}
|
|
254
|
+
/** Values */
|
|
255
|
+
export declare type ValueNode =
|
|
256
|
+
| VariableNode
|
|
257
|
+
| IntValueNode
|
|
258
|
+
| FloatValueNode
|
|
259
|
+
| StringValueNode
|
|
260
|
+
| BooleanValueNode
|
|
261
|
+
| NullValueNode
|
|
262
|
+
| EnumValueNode
|
|
263
|
+
| ListValueNode
|
|
264
|
+
| ObjectValueNode;
|
|
265
|
+
export declare type ConstValueNode =
|
|
266
|
+
| IntValueNode
|
|
267
|
+
| FloatValueNode
|
|
268
|
+
| StringValueNode
|
|
269
|
+
| BooleanValueNode
|
|
270
|
+
| NullValueNode
|
|
271
|
+
| EnumValueNode
|
|
272
|
+
| ConstListValueNode
|
|
273
|
+
| ConstObjectValueNode;
|
|
274
|
+
export interface IntValueNode {
|
|
275
|
+
readonly kind: Kind.INT;
|
|
276
|
+
readonly loc?: Location;
|
|
277
|
+
readonly value: string;
|
|
278
|
+
}
|
|
279
|
+
export interface FloatValueNode {
|
|
280
|
+
readonly kind: Kind.FLOAT;
|
|
281
|
+
readonly loc?: Location;
|
|
282
|
+
readonly value: string;
|
|
283
|
+
}
|
|
284
|
+
export interface StringValueNode {
|
|
285
|
+
readonly kind: Kind.STRING;
|
|
286
|
+
readonly loc?: Location;
|
|
287
|
+
readonly value: string;
|
|
288
|
+
readonly block?: boolean;
|
|
289
|
+
}
|
|
290
|
+
export interface BooleanValueNode {
|
|
291
|
+
readonly kind: Kind.BOOLEAN;
|
|
292
|
+
readonly loc?: Location;
|
|
293
|
+
readonly value: boolean;
|
|
294
|
+
}
|
|
295
|
+
export interface NullValueNode {
|
|
296
|
+
readonly kind: Kind.NULL;
|
|
297
|
+
readonly loc?: Location;
|
|
298
|
+
}
|
|
299
|
+
export interface EnumValueNode {
|
|
300
|
+
readonly kind: Kind.ENUM;
|
|
301
|
+
readonly loc?: Location;
|
|
302
|
+
readonly value: string;
|
|
303
|
+
}
|
|
304
|
+
export interface ListValueNode {
|
|
305
|
+
readonly kind: Kind.LIST;
|
|
306
|
+
readonly loc?: Location;
|
|
307
|
+
readonly values: ReadonlyArray<ValueNode>;
|
|
308
|
+
}
|
|
309
|
+
export interface ConstListValueNode {
|
|
310
|
+
readonly kind: Kind.LIST;
|
|
311
|
+
readonly loc?: Location;
|
|
312
|
+
readonly values: ReadonlyArray<ConstValueNode>;
|
|
313
|
+
}
|
|
314
|
+
export interface ObjectValueNode {
|
|
315
|
+
readonly kind: Kind.OBJECT;
|
|
316
|
+
readonly loc?: Location;
|
|
317
|
+
readonly fields: ReadonlyArray<ObjectFieldNode>;
|
|
318
|
+
}
|
|
319
|
+
export interface ConstObjectValueNode {
|
|
320
|
+
readonly kind: Kind.OBJECT;
|
|
321
|
+
readonly loc?: Location;
|
|
322
|
+
readonly fields: ReadonlyArray<ConstObjectFieldNode>;
|
|
323
|
+
}
|
|
324
|
+
export interface ObjectFieldNode {
|
|
325
|
+
readonly kind: Kind.OBJECT_FIELD;
|
|
326
|
+
readonly loc?: Location;
|
|
327
|
+
readonly name: NameNode;
|
|
328
|
+
readonly value: ValueNode;
|
|
329
|
+
}
|
|
330
|
+
export interface ConstObjectFieldNode {
|
|
331
|
+
readonly kind: Kind.OBJECT_FIELD;
|
|
332
|
+
readonly loc?: Location;
|
|
333
|
+
readonly name: NameNode;
|
|
334
|
+
readonly value: ConstValueNode;
|
|
335
|
+
}
|
|
336
|
+
/** Directives */
|
|
337
|
+
export interface DirectiveNode {
|
|
338
|
+
readonly kind: Kind.DIRECTIVE;
|
|
339
|
+
readonly loc?: Location;
|
|
340
|
+
readonly name: NameNode;
|
|
341
|
+
readonly arguments?: ReadonlyArray<ArgumentNode>;
|
|
342
|
+
}
|
|
343
|
+
export interface ConstDirectiveNode {
|
|
344
|
+
readonly kind: Kind.DIRECTIVE;
|
|
345
|
+
readonly loc?: Location;
|
|
346
|
+
readonly name: NameNode;
|
|
347
|
+
readonly arguments?: ReadonlyArray<ConstArgumentNode>;
|
|
348
|
+
}
|
|
349
|
+
/** Type Reference */
|
|
350
|
+
export declare type TypeNode = NamedTypeNode | ListTypeNode | NonNullTypeNode;
|
|
351
|
+
export interface NamedTypeNode {
|
|
352
|
+
readonly kind: Kind.NAMED_TYPE;
|
|
353
|
+
readonly loc?: Location;
|
|
354
|
+
readonly name: NameNode;
|
|
355
|
+
}
|
|
356
|
+
export interface ListTypeNode {
|
|
357
|
+
readonly kind: Kind.LIST_TYPE;
|
|
358
|
+
readonly loc?: Location;
|
|
359
|
+
readonly type: TypeNode;
|
|
360
|
+
}
|
|
361
|
+
export interface NonNullTypeNode {
|
|
362
|
+
readonly kind: Kind.NON_NULL_TYPE;
|
|
363
|
+
readonly loc?: Location;
|
|
364
|
+
readonly type: NamedTypeNode | ListTypeNode;
|
|
365
|
+
}
|
|
366
|
+
/** Type System Definition */
|
|
367
|
+
export declare type TypeSystemDefinitionNode =
|
|
368
|
+
| SchemaDefinitionNode
|
|
369
|
+
| TypeDefinitionNode
|
|
370
|
+
| DirectiveDefinitionNode;
|
|
371
|
+
export interface SchemaDefinitionNode {
|
|
372
|
+
readonly kind: Kind.SCHEMA_DEFINITION;
|
|
373
|
+
readonly loc?: Location;
|
|
374
|
+
readonly description?: StringValueNode;
|
|
375
|
+
readonly directives?: ReadonlyArray<ConstDirectiveNode>;
|
|
376
|
+
readonly operationTypes: ReadonlyArray<OperationTypeDefinitionNode>;
|
|
377
|
+
}
|
|
378
|
+
export interface OperationTypeDefinitionNode {
|
|
379
|
+
readonly kind: Kind.OPERATION_TYPE_DEFINITION;
|
|
380
|
+
readonly loc?: Location;
|
|
381
|
+
readonly operation: OperationTypeNode;
|
|
382
|
+
readonly type: NamedTypeNode;
|
|
383
|
+
}
|
|
384
|
+
/** Type Definition */
|
|
385
|
+
export declare type TypeDefinitionNode =
|
|
386
|
+
| ScalarTypeDefinitionNode
|
|
387
|
+
| ObjectTypeDefinitionNode
|
|
388
|
+
| InterfaceTypeDefinitionNode
|
|
389
|
+
| UnionTypeDefinitionNode
|
|
390
|
+
| EnumTypeDefinitionNode
|
|
391
|
+
| InputObjectTypeDefinitionNode;
|
|
392
|
+
export interface ScalarTypeDefinitionNode {
|
|
393
|
+
readonly kind: Kind.SCALAR_TYPE_DEFINITION;
|
|
394
|
+
readonly loc?: Location;
|
|
395
|
+
readonly description?: StringValueNode;
|
|
396
|
+
readonly name: NameNode;
|
|
397
|
+
readonly directives?: ReadonlyArray<ConstDirectiveNode>;
|
|
398
|
+
}
|
|
399
|
+
export interface ObjectTypeDefinitionNode {
|
|
400
|
+
readonly kind: Kind.OBJECT_TYPE_DEFINITION;
|
|
401
|
+
readonly loc?: Location;
|
|
402
|
+
readonly description?: StringValueNode;
|
|
403
|
+
readonly name: NameNode;
|
|
404
|
+
readonly interfaces?: ReadonlyArray<NamedTypeNode>;
|
|
405
|
+
readonly directives?: ReadonlyArray<ConstDirectiveNode>;
|
|
406
|
+
readonly fields?: ReadonlyArray<FieldDefinitionNode>;
|
|
407
|
+
}
|
|
408
|
+
export interface FieldDefinitionNode {
|
|
409
|
+
readonly kind: Kind.FIELD_DEFINITION;
|
|
410
|
+
readonly loc?: Location;
|
|
411
|
+
readonly description?: StringValueNode;
|
|
412
|
+
readonly name: NameNode;
|
|
413
|
+
readonly arguments?: ReadonlyArray<InputValueDefinitionNode>;
|
|
414
|
+
readonly type: TypeNode;
|
|
415
|
+
readonly directives?: ReadonlyArray<ConstDirectiveNode>;
|
|
416
|
+
}
|
|
417
|
+
export interface InputValueDefinitionNode {
|
|
418
|
+
readonly kind: Kind.INPUT_VALUE_DEFINITION;
|
|
419
|
+
readonly loc?: Location;
|
|
420
|
+
readonly description?: StringValueNode;
|
|
421
|
+
readonly name: NameNode;
|
|
422
|
+
readonly type: TypeNode;
|
|
423
|
+
readonly defaultValue?: ConstValueNode;
|
|
424
|
+
readonly directives?: ReadonlyArray<ConstDirectiveNode>;
|
|
425
|
+
}
|
|
426
|
+
export interface InterfaceTypeDefinitionNode {
|
|
427
|
+
readonly kind: Kind.INTERFACE_TYPE_DEFINITION;
|
|
428
|
+
readonly loc?: Location;
|
|
429
|
+
readonly description?: StringValueNode;
|
|
430
|
+
readonly name: NameNode;
|
|
431
|
+
readonly interfaces?: ReadonlyArray<NamedTypeNode>;
|
|
432
|
+
readonly directives?: ReadonlyArray<ConstDirectiveNode>;
|
|
433
|
+
readonly fields?: ReadonlyArray<FieldDefinitionNode>;
|
|
434
|
+
}
|
|
435
|
+
export interface UnionTypeDefinitionNode {
|
|
436
|
+
readonly kind: Kind.UNION_TYPE_DEFINITION;
|
|
437
|
+
readonly loc?: Location;
|
|
438
|
+
readonly description?: StringValueNode;
|
|
439
|
+
readonly name: NameNode;
|
|
440
|
+
readonly directives?: ReadonlyArray<ConstDirectiveNode>;
|
|
441
|
+
readonly types?: ReadonlyArray<NamedTypeNode>;
|
|
442
|
+
}
|
|
443
|
+
export interface EnumTypeDefinitionNode {
|
|
444
|
+
readonly kind: Kind.ENUM_TYPE_DEFINITION;
|
|
445
|
+
readonly loc?: Location;
|
|
446
|
+
readonly description?: StringValueNode;
|
|
447
|
+
readonly name: NameNode;
|
|
448
|
+
readonly directives?: ReadonlyArray<ConstDirectiveNode>;
|
|
449
|
+
readonly values?: ReadonlyArray<EnumValueDefinitionNode>;
|
|
450
|
+
}
|
|
451
|
+
export interface EnumValueDefinitionNode {
|
|
452
|
+
readonly kind: Kind.ENUM_VALUE_DEFINITION;
|
|
453
|
+
readonly loc?: Location;
|
|
454
|
+
readonly description?: StringValueNode;
|
|
455
|
+
readonly name: NameNode;
|
|
456
|
+
readonly directives?: ReadonlyArray<ConstDirectiveNode>;
|
|
457
|
+
}
|
|
458
|
+
export interface InputObjectTypeDefinitionNode {
|
|
459
|
+
readonly kind: Kind.INPUT_OBJECT_TYPE_DEFINITION;
|
|
460
|
+
readonly loc?: Location;
|
|
461
|
+
readonly description?: StringValueNode;
|
|
462
|
+
readonly name: NameNode;
|
|
463
|
+
readonly directives?: ReadonlyArray<ConstDirectiveNode>;
|
|
464
|
+
readonly fields?: ReadonlyArray<InputValueDefinitionNode>;
|
|
465
|
+
}
|
|
466
|
+
/** Directive Definitions */
|
|
467
|
+
export interface DirectiveDefinitionNode {
|
|
468
|
+
readonly kind: Kind.DIRECTIVE_DEFINITION;
|
|
469
|
+
readonly loc?: Location;
|
|
470
|
+
readonly description?: StringValueNode;
|
|
471
|
+
readonly name: NameNode;
|
|
472
|
+
readonly arguments?: ReadonlyArray<InputValueDefinitionNode>;
|
|
473
|
+
readonly repeatable: boolean;
|
|
474
|
+
readonly locations: ReadonlyArray<NameNode>;
|
|
475
|
+
}
|
|
476
|
+
/** Type System Extensions */
|
|
477
|
+
export declare type TypeSystemExtensionNode =
|
|
478
|
+
| SchemaExtensionNode
|
|
479
|
+
| TypeExtensionNode;
|
|
480
|
+
export interface SchemaExtensionNode {
|
|
481
|
+
readonly kind: Kind.SCHEMA_EXTENSION;
|
|
482
|
+
readonly loc?: Location;
|
|
483
|
+
readonly directives?: ReadonlyArray<ConstDirectiveNode>;
|
|
484
|
+
readonly operationTypes?: ReadonlyArray<OperationTypeDefinitionNode>;
|
|
485
|
+
}
|
|
486
|
+
/** Type Extensions */
|
|
487
|
+
export declare type TypeExtensionNode =
|
|
488
|
+
| ScalarTypeExtensionNode
|
|
489
|
+
| ObjectTypeExtensionNode
|
|
490
|
+
| InterfaceTypeExtensionNode
|
|
491
|
+
| UnionTypeExtensionNode
|
|
492
|
+
| EnumTypeExtensionNode
|
|
493
|
+
| InputObjectTypeExtensionNode;
|
|
494
|
+
export interface ScalarTypeExtensionNode {
|
|
495
|
+
readonly kind: Kind.SCALAR_TYPE_EXTENSION;
|
|
496
|
+
readonly loc?: Location;
|
|
497
|
+
readonly name: NameNode;
|
|
498
|
+
readonly directives?: ReadonlyArray<ConstDirectiveNode>;
|
|
499
|
+
}
|
|
500
|
+
export interface ObjectTypeExtensionNode {
|
|
501
|
+
readonly kind: Kind.OBJECT_TYPE_EXTENSION;
|
|
502
|
+
readonly loc?: Location;
|
|
503
|
+
readonly name: NameNode;
|
|
504
|
+
readonly interfaces?: ReadonlyArray<NamedTypeNode>;
|
|
505
|
+
readonly directives?: ReadonlyArray<ConstDirectiveNode>;
|
|
506
|
+
readonly fields?: ReadonlyArray<FieldDefinitionNode>;
|
|
507
|
+
}
|
|
508
|
+
export interface InterfaceTypeExtensionNode {
|
|
509
|
+
readonly kind: Kind.INTERFACE_TYPE_EXTENSION;
|
|
510
|
+
readonly loc?: Location;
|
|
511
|
+
readonly name: NameNode;
|
|
512
|
+
readonly interfaces?: ReadonlyArray<NamedTypeNode>;
|
|
513
|
+
readonly directives?: ReadonlyArray<ConstDirectiveNode>;
|
|
514
|
+
readonly fields?: ReadonlyArray<FieldDefinitionNode>;
|
|
515
|
+
}
|
|
516
|
+
export interface UnionTypeExtensionNode {
|
|
517
|
+
readonly kind: Kind.UNION_TYPE_EXTENSION;
|
|
518
|
+
readonly loc?: Location;
|
|
519
|
+
readonly name: NameNode;
|
|
520
|
+
readonly directives?: ReadonlyArray<ConstDirectiveNode>;
|
|
521
|
+
readonly types?: ReadonlyArray<NamedTypeNode>;
|
|
522
|
+
}
|
|
523
|
+
export interface EnumTypeExtensionNode {
|
|
524
|
+
readonly kind: Kind.ENUM_TYPE_EXTENSION;
|
|
525
|
+
readonly loc?: Location;
|
|
526
|
+
readonly name: NameNode;
|
|
527
|
+
readonly directives?: ReadonlyArray<ConstDirectiveNode>;
|
|
528
|
+
readonly values?: ReadonlyArray<EnumValueDefinitionNode>;
|
|
529
|
+
}
|
|
530
|
+
export interface InputObjectTypeExtensionNode {
|
|
531
|
+
readonly kind: Kind.INPUT_OBJECT_TYPE_EXTENSION;
|
|
532
|
+
readonly loc?: Location;
|
|
533
|
+
readonly name: NameNode;
|
|
534
|
+
readonly directives?: ReadonlyArray<ConstDirectiveNode>;
|
|
535
|
+
readonly fields?: ReadonlyArray<InputValueDefinitionNode>;
|
|
536
|
+
}
|