Skip to content

Commit

Permalink
Export 'ConnectionConfig' and 'GraphQLConnectionDefinitions' types (#371
Browse files Browse the repository at this point in the history
)
  • Loading branch information
IvanGoncharov committed Dec 10, 2021
1 parent 2b9dbaf commit 440a32b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/connection/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export type ConnectionArguments = {
...
};

type ConnectionConfig = {
export type ConnectionConfig = {
name?: string,
nodeType: GraphQLNamedOutputType | GraphQLNonNull<GraphQLNamedOutputType>,
resolveNode?: GraphQLFieldResolver<any, any>,
Expand All @@ -84,7 +84,7 @@ type ConnectionConfig = {
connectionFields?: Thunk<GraphQLFieldConfigMap<any, any>>,
};

type GraphQLConnectionDefinitions = {
export type GraphQLConnectionDefinitions = {
edgeType: GraphQLObjectType,
connectionType: GraphQLObjectType,
};
Expand Down
2 changes: 2 additions & 0 deletions src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ export type {
Connection,
ConnectionArguments,
ConnectionCursor,
ConnectionConfig,
GraphQLConnectionDefinitions,
Edge,
PageInfo,
} from './connection/connection';
Expand Down
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ export type {
Connection,
ConnectionArguments,
ConnectionCursor,
ConnectionConfig,
GraphQLConnectionDefinitions,
Edge,
PageInfo,
} from './connection/connection';
Expand Down

0 comments on commit 440a32b

Please sign in to comment.