Skip to content

Commit a0670bc

Browse files
Flow: use only type imports for importing types (#3097)
1 parent 501b665 commit a0670bc

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

src/type/schema.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,9 @@ import type {
2323
GraphQLObjectType,
2424
GraphQLInterfaceType,
2525
} from './definition';
26+
import type { GraphQLDirective } from './directives';
2627
import { __Schema } from './introspection';
27-
import {
28-
GraphQLDirective,
29-
isDirective,
30-
specifiedDirectives,
31-
} from './directives';
28+
import { isDirective, specifiedDirectives } from './directives';
3229
import {
3330
isObjectType,
3431
isInterfaceType,

src/validation/__tests__/harness.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { expect } from 'chai';
22

33
import { parse } from '../../language/parser';
44

5-
import { GraphQLSchema } from '../../type/schema';
5+
import type { GraphQLSchema } from '../../type/schema';
66

77
import { buildSchema } from '../../utilities/buildASTSchema';
88

0 commit comments

Comments
 (0)