|
1 | 1 | import type {
|
2 | 2 | GraphQLNonNull,
|
3 |
| - GraphQLNamedOutputType, |
4 |
| - GraphQLScalarType, |
5 | 3 | GraphQLObjectType,
|
| 4 | + GraphQLNamedOutputType, |
6 | 5 | GraphQLFieldConfigArgumentMap,
|
7 | 6 | GraphQLFieldConfigMap,
|
8 | 7 | GraphQLFieldResolver,
|
9 | 8 | Thunk,
|
10 | 9 | } from 'graphql';
|
11 | 10 |
|
12 |
| -interface ForwardConnectionArgs { |
13 |
| - after: { type: GraphQLScalarType }; |
14 |
| - first: { type: GraphQLScalarType }; |
15 |
| -} |
16 |
| - |
17 | 11 | /**
|
18 | 12 | * Returns a GraphQLFieldConfigArgumentMap appropriate to include on a field
|
19 | 13 | * whose return type is a connection type with forward pagination.
|
20 | 14 | */
|
21 |
| -export const forwardConnectionArgs: GraphQLFieldConfigArgumentMap & |
22 |
| - ForwardConnectionArgs; |
23 |
| - |
24 |
| -interface BackwardConnectionArgs { |
25 |
| - before: { type: GraphQLScalarType }; |
26 |
| - last: { type: GraphQLScalarType }; |
27 |
| -} |
| 15 | +export declare const forwardConnectionArgs: GraphQLFieldConfigArgumentMap; |
28 | 16 |
|
29 | 17 | /**
|
30 | 18 | * Returns a GraphQLFieldConfigArgumentMap appropriate to include on a field
|
31 | 19 | * whose return type is a connection type with backward pagination.
|
32 | 20 | */
|
33 |
| -export const backwardConnectionArgs: GraphQLFieldConfigArgumentMap & |
34 |
| - BackwardConnectionArgs; |
| 21 | +export declare const backwardConnectionArgs: GraphQLFieldConfigArgumentMap; |
35 | 22 |
|
36 | 23 | /**
|
37 | 24 | * Returns a GraphQLFieldConfigArgumentMap appropriate to include on a field
|
38 | 25 | * whose return type is a connection type with bidirectional pagination.
|
39 | 26 | */
|
40 |
| -export const connectionArgs: GraphQLFieldConfigArgumentMap & |
41 |
| - ForwardConnectionArgs & |
42 |
| - BackwardConnectionArgs; |
| 27 | +export declare const connectionArgs: GraphQLFieldConfigArgumentMap; |
43 | 28 |
|
44 | 29 | /**
|
45 | 30 | * A type alias for cursors in this implementation.
|
46 | 31 | */
|
47 |
| -export type ConnectionCursor = string; |
| 32 | +export declare type ConnectionCursor = string; |
48 | 33 |
|
49 | 34 | /**
|
50 | 35 | * A type describing the arguments a connection field receives in GraphQL.
|
|
0 commit comments