Skip to content

Commit a29ea8e

Browse files
committed
connection.d.ts: sync up with Flow typings
1 parent ffc7d38 commit a29ea8e

File tree

1 file changed

+2
-17
lines changed

1 file changed

+2
-17
lines changed

src/connection/connection.d.ts

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,22 @@
11
import type {
2-
GraphQLNonNull,
32
GraphQLNamedOutputType,
4-
GraphQLScalarType,
5-
GraphQLObjectType,
63
GraphQLFieldConfigArgumentMap,
74
GraphQLFieldConfigMap,
85
GraphQLFieldResolver,
96
Thunk,
107
} from 'graphql';
118

12-
interface ForwardConnectionArgs {
13-
after: { type: GraphQLScalarType };
14-
first: { type: GraphQLScalarType };
15-
}
16-
179
/**
1810
* Returns a GraphQLFieldConfigArgumentMap appropriate to include on a field
1911
* whose return type is a connection type with forward pagination.
2012
*/
21-
export const forwardConnectionArgs: GraphQLFieldConfigArgumentMap &
22-
ForwardConnectionArgs;
23-
24-
interface BackwardConnectionArgs {
25-
before: { type: GraphQLScalarType };
26-
last: { type: GraphQLScalarType };
27-
}
13+
export const forwardConnectionArgs: GraphQLFieldConfigArgumentMap;
2814

2915
/**
3016
* Returns a GraphQLFieldConfigArgumentMap appropriate to include on a field
3117
* whose return type is a connection type with backward pagination.
3218
*/
33-
export const backwardConnectionArgs: GraphQLFieldConfigArgumentMap &
34-
BackwardConnectionArgs;
19+
export const backwardConnectionArgs: GraphQLFieldConfigArgumentMap;
3520

3621
/**
3722
* Returns a GraphQLFieldConfigArgumentMap appropriate to include on a field

0 commit comments

Comments
 (0)