Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/type/directives.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,13 @@ export class GraphQLDirective {
defineToStringTag(GraphQLDirective);
defineToJSON(GraphQLDirective);

export type GraphQLDirectiveConfig = {
export type GraphQLDirectiveConfig = {|
name: string,
description?: ?string,
locations: Array<DirectiveLocationEnum>,
args?: ?GraphQLFieldConfigArgumentMap,
astNode?: ?DirectiveDefinitionNode,
};
|};

/**
* Used to conditionally include fields or fragments.
Expand Down
4 changes: 2 additions & 2 deletions src/type/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ export type GraphQLSchemaValidationOptions = {|
allowedLegacyNames?: ?$ReadOnlyArray<string>,
|};

export type GraphQLSchemaConfig = {
export type GraphQLSchemaConfig = {|
query?: ?GraphQLObjectType,
mutation?: ?GraphQLObjectType,
subscription?: ?GraphQLObjectType,
Expand All @@ -266,7 +266,7 @@ export type GraphQLSchemaConfig = {
astNode?: ?SchemaDefinitionNode,
extensionASTNodes?: ?$ReadOnlyArray<SchemaExtensionNode>,
...GraphQLSchemaValidationOptions,
};
|};

function typeMapReducer(map: TypeMap, type: ?GraphQLType): TypeMap {
if (!type) {
Expand Down