Skip to content

Commit 6b95e50

Browse files
Add missing 'type' prefixes to imports (#1431)
1 parent 3828c20 commit 6b95e50

File tree

8 files changed

+11
-11
lines changed

8 files changed

+11
-11
lines changed

src/execution/execute.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ import type {
4646
ResponsePath,
4747
GraphQLList,
4848
} from '../type/definition';
49-
import { GraphQLSchema } from '../type/schema';
49+
import type { GraphQLSchema } from '../type/schema';
5050
import {
5151
SchemaMetaFieldDef,
5252
TypeMetaFieldDef,

src/subscription/subscribe.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import {
2222
resolveFieldValueOrError,
2323
responsePathAsArray,
2424
} from '../execution/execute';
25-
import { GraphQLSchema } from '../type/schema';
25+
import type { GraphQLSchema } from '../type/schema';
2626
import mapAsyncIterator from './mapAsyncIterator';
2727

2828
import type { ObjMap } from '../jsutils/ObjMap';

src/utilities/findBreakingChanges.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ import type {
2626
GraphQLArgument,
2727
} from '../type/definition';
2828

29-
import { GraphQLDirective } from '../type/directives';
30-
import { GraphQLSchema } from '../type/schema';
29+
import type { GraphQLDirective } from '../type/directives';
30+
import type { GraphQLSchema } from '../type/schema';
3131
import keyMap from '../jsutils/keyMap';
3232

3333
import type { ObjMap } from '../jsutils/ObjMap';

src/utilities/findDeprecatedUsages.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { GraphQLError } from '../error/GraphQLError';
1111
import { visit, visitWithTypeInfo } from '../language/visitor';
1212
import type { DocumentNode } from '../language/ast';
1313
import { getNamedType } from '../type/definition';
14-
import { GraphQLSchema } from '../type/schema';
14+
import type { GraphQLSchema } from '../type/schema';
1515
import { TypeInfo } from './TypeInfo';
1616

1717
/**

src/utilities/getOperationRootType.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import type {
1212
OperationDefinitionNode,
1313
OperationTypeDefinitionNode,
1414
} from '../language/ast';
15-
import { GraphQLSchema } from '../type/schema';
15+
import type { GraphQLSchema } from '../type/schema';
1616
import type { GraphQLObjectType } from '../type/definition';
1717

1818
/**

src/utilities/introspectionFromSchema.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
import invariant from '../jsutils/invariant';
1111
import { getIntrospectionQuery } from './introspectionQuery';
12-
import { GraphQLSchema } from '../type/schema';
12+
import type { GraphQLSchema } from '../type/schema';
1313
import { execute } from '../execution/execute';
1414
import { parse } from '../language/parser';
1515
import type {

src/validation/ValidationContext.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*/
99

1010
import type { ObjMap } from '../jsutils/ObjMap';
11-
import { GraphQLError } from '../error';
11+
import type { GraphQLError } from '../error';
1212
import { visit, visitWithTypeInfo } from '../language/visitor';
1313
import { Kind } from '../language/kinds';
1414
import type {
@@ -19,7 +19,7 @@ import type {
1919
FragmentSpreadNode,
2020
FragmentDefinitionNode,
2121
} from '../language/ast';
22-
import { GraphQLSchema } from '../type/schema';
22+
import type { GraphQLSchema } from '../type/schema';
2323
import type {
2424
GraphQLInputType,
2525
GraphQLOutputType,

src/validation/validate.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
*/
99

1010
import invariant from '../jsutils/invariant';
11-
import { GraphQLError } from '../error';
11+
import type { GraphQLError } from '../error';
1212
import { visit, visitInParallel, visitWithTypeInfo } from '../language/visitor';
1313
import type { DocumentNode } from '../language/ast';
1414
import type { ASTVisitor } from '../language/visitor';
15-
import { GraphQLSchema } from '../type/schema';
15+
import type { GraphQLSchema } from '../type/schema';
1616
import { assertValidSchema } from '../type/validate';
1717
import { TypeInfo } from '../utilities/TypeInfo';
1818
import { specifiedRules } from './specifiedRules';

0 commit comments

Comments
 (0)