Skip to content

Commit

Permalink
connection.d.ts: sync up with Flow typings
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov committed Dec 9, 2021
1 parent ffc7d38 commit a29ea8e
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions src/connection/connection.d.ts
Original file line number Diff line number Diff line change
@@ -1,37 +1,22 @@
import type {
GraphQLNonNull,
GraphQLNamedOutputType,
GraphQLScalarType,
GraphQLObjectType,
GraphQLFieldConfigArgumentMap,
GraphQLFieldConfigMap,
GraphQLFieldResolver,
Thunk,
} from 'graphql';

interface ForwardConnectionArgs {
after: { type: GraphQLScalarType };
first: { type: GraphQLScalarType };
}

/**
* Returns a GraphQLFieldConfigArgumentMap appropriate to include on a field
* whose return type is a connection type with forward pagination.
*/
export const forwardConnectionArgs: GraphQLFieldConfigArgumentMap &
ForwardConnectionArgs;

interface BackwardConnectionArgs {
before: { type: GraphQLScalarType };
last: { type: GraphQLScalarType };
}
export const forwardConnectionArgs: GraphQLFieldConfigArgumentMap;

/**
* Returns a GraphQLFieldConfigArgumentMap appropriate to include on a field
* whose return type is a connection type with backward pagination.
*/
export const backwardConnectionArgs: GraphQLFieldConfigArgumentMap &
BackwardConnectionArgs;
export const backwardConnectionArgs: GraphQLFieldConfigArgumentMap;

/**
* Returns a GraphQLFieldConfigArgumentMap appropriate to include on a field
Expand Down

0 comments on commit a29ea8e

Please sign in to comment.