Skip to content

Commit 8171974

Browse files
Convert 'GraphQL*Config' to exact types (part 2) (#1443)
Continuation of #1391
1 parent a1ee52a commit 8171974

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/type/directives.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,13 @@ export class GraphQLDirective {
8686
defineToStringTag(GraphQLDirective);
8787
defineToJSON(GraphQLDirective);
8888

89-
export type GraphQLDirectiveConfig = {
89+
export type GraphQLDirectiveConfig = {|
9090
name: string,
9191
description?: ?string,
9292
locations: Array<DirectiveLocationEnum>,
9393
args?: ?GraphQLFieldConfigArgumentMap,
9494
astNode?: ?DirectiveDefinitionNode,
95-
};
95+
|};
9696

9797
/**
9898
* Used to conditionally include fields or fragments.

src/type/schema.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ export type GraphQLSchemaValidationOptions = {|
257257
allowedLegacyNames?: ?$ReadOnlyArray<string>,
258258
|};
259259

260-
export type GraphQLSchemaConfig = {
260+
export type GraphQLSchemaConfig = {|
261261
query?: ?GraphQLObjectType,
262262
mutation?: ?GraphQLObjectType,
263263
subscription?: ?GraphQLObjectType,
@@ -266,7 +266,7 @@ export type GraphQLSchemaConfig = {
266266
astNode?: ?SchemaDefinitionNode,
267267
extensionASTNodes?: ?$ReadOnlyArray<SchemaExtensionNode>,
268268
...GraphQLSchemaValidationOptions,
269-
};
269+
|};
270270

271271
function typeMapReducer(map: TypeMap, type: ?GraphQLType): TypeMap {
272272
if (!type) {

0 commit comments

Comments
 (0)