diff --git a/src/connection/connection.js b/src/connection/connection.js index 205b2dc..c393bf0 100644 --- a/src/connection/connection.js +++ b/src/connection/connection.js @@ -75,7 +75,7 @@ export type ConnectionArguments = { ... }; -type ConnectionConfig = { +export type ConnectionConfig = { name?: string, nodeType: GraphQLNamedOutputType | GraphQLNonNull, resolveNode?: GraphQLFieldResolver, @@ -84,7 +84,7 @@ type ConnectionConfig = { connectionFields?: Thunk>, }; -type GraphQLConnectionDefinitions = { +export type GraphQLConnectionDefinitions = { edgeType: GraphQLObjectType, connectionType: GraphQLObjectType, }; diff --git a/src/index.d.ts b/src/index.d.ts index 3dd223b..9be6bcc 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -3,6 +3,8 @@ export type { Connection, ConnectionArguments, ConnectionCursor, + ConnectionConfig, + GraphQLConnectionDefinitions, Edge, PageInfo, } from './connection/connection'; diff --git a/src/index.js b/src/index.js index 3dd223b..9be6bcc 100644 --- a/src/index.js +++ b/src/index.js @@ -3,6 +3,8 @@ export type { Connection, ConnectionArguments, ConnectionCursor, + ConnectionConfig, + GraphQLConnectionDefinitions, Edge, PageInfo, } from './connection/connection';