File tree 3 files changed +117
-125
lines changed
3 files changed +117
-125
lines changed Original file line number Diff line number Diff line change @@ -112,3 +112,14 @@ export interface GraphQLSchemaConfig extends GraphQLSchemaValidationOptions {
112
112
astNode ?: Maybe < SchemaDefinitionNode > ;
113
113
extensionASTNodes ?: Maybe < ReadonlyArray < SchemaExtensionNode > > ;
114
114
}
115
+
116
+ /**
117
+ * @internal
118
+ */
119
+ export interface GraphQLSchemaNormalizedConfig extends GraphQLSchemaConfig {
120
+ types : Array < GraphQLNamedType > ;
121
+ directives : Array < GraphQLDirective > ;
122
+ extensions : Maybe < Readonly < Record < string , any > > > ;
123
+ extensionASTNodes : Maybe < ReadonlyArray < SchemaExtensionNode > > ;
124
+ assumeValid : boolean ;
125
+ }
Original file line number Diff line number Diff line change 1
1
import Maybe from '../tsutils/Maybe' ;
2
2
import { Location , DocumentNode , StringValueNode } from '../language/ast' ;
3
- import { GraphQLSchemaValidationOptions , GraphQLSchema } from '../type/schema' ;
3
+ import {
4
+ GraphQLSchemaValidationOptions ,
5
+ GraphQLSchema ,
6
+ GraphQLSchemaNormalizedConfig ,
7
+ } from '../type/schema' ;
4
8
5
9
interface Options extends GraphQLSchemaValidationOptions {
6
10
/**
@@ -45,6 +49,15 @@ export function extendSchema(
45
49
options ?: Options ,
46
50
) : GraphQLSchema ;
47
51
52
+ /**
53
+ * @internal
54
+ */
55
+ export function extendSchemaImpl (
56
+ schemaConfig : GraphQLSchemaNormalizedConfig ,
57
+ documentAST : DocumentNode ,
58
+ options ?: Options ,
59
+ ) : GraphQLSchemaNormalizedConfig ;
60
+
48
61
/**
49
62
* Given an ast node, returns its string description.
50
63
* @deprecated : provided to ease adoption and will be removed in v16.
You can’t perform that action at this time.
0 commit comments