Skip to content

Commit

Permalink
Export 'GraphQLSchemaConfig' & 'GraphQLDirectiveConfig' types (#1193)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov authored and leebyron committed Jan 8, 2018
1 parent 87c1bc3 commit 740b7fa
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ export type {
GraphQLNullableType,
GraphQLNamedType,
Thunk,
GraphQLSchemaConfig,
GraphQLArgument,
GraphQLArgumentConfig,
GraphQLEnumTypeConfig,
Expand All @@ -163,6 +164,7 @@ export type {
GraphQLScalarTypeConfig,
GraphQLTypeResolver,
GraphQLUnionTypeConfig,
GraphQLDirectiveConfig,
} from './type';

// Parse and operate on GraphQL language source files.
Expand Down
2 changes: 1 addition & 1 deletion src/type/directives.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export class GraphQLDirective {
}
}

type GraphQLDirectiveConfig = {
export type GraphQLDirectiveConfig = {
name: string,
description?: ?string,
locations: Array<DirectiveLocationEnum>,
Expand Down
4 changes: 4 additions & 0 deletions src/type/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ export {
GraphQLSchema,
} from './schema';

export type { GraphQLSchemaConfig } from './schema';

export {
// Predicates
isType,
Expand Down Expand Up @@ -84,6 +86,8 @@ export {
DEFAULT_DEPRECATION_REASON,
} from './directives';

export type { GraphQLDirectiveConfig } from './directives';

// Common built-in scalar instances.
export {
isSpecifiedScalarType,
Expand Down
2 changes: 1 addition & 1 deletion src/type/schema.js
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ export class GraphQLSchema {

type TypeMap = ObjMap<GraphQLNamedType>;

type GraphQLSchemaConfig = {
export type GraphQLSchemaConfig = {
query?: ?GraphQLObjectType,
mutation?: ?GraphQLObjectType,
subscription?: ?GraphQLObjectType,
Expand Down

0 comments on commit 740b7fa

Please sign in to comment.