File tree Expand file tree Collapse file tree 5 files changed +8
-20
lines changed Expand file tree Collapse file tree 5 files changed +8
-20
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,7 @@ import type {
4
4
ConnectionCursor ,
5
5
} from './connection' ;
6
6
7
- // TS_SPECIFIC: This type is only exported by TypeScript
8
- export interface ArraySliceMetaInfo {
7
+ interface ArraySliceMetaInfo {
9
8
sliceStart : number ;
10
9
arrayLength : number ;
11
10
}
Original file line number Diff line number Diff line change @@ -9,8 +9,7 @@ import type {
9
9
Thunk ,
10
10
} from 'graphql' ;
11
11
12
- // TS_SPECIFIC: This type is only exported by TypeScript. Flow uses the spread operator instead.
13
- export interface ForwardConnectionArgs {
12
+ interface ForwardConnectionArgs {
14
13
after : { type : GraphQLScalarType } ;
15
14
first : { type : GraphQLScalarType } ;
16
15
}
@@ -22,8 +21,7 @@ export interface ForwardConnectionArgs {
22
21
export const forwardConnectionArgs : GraphQLFieldConfigArgumentMap &
23
22
ForwardConnectionArgs ;
24
23
25
- // TS_SPECIFIC: This type is only exported by TypeScript. Flow uses the spread operator instead.
26
- export interface BackwardConnectionArgs {
24
+ interface BackwardConnectionArgs {
27
25
before : { type : GraphQLScalarType } ;
28
26
last : { type : GraphQLScalarType } ;
29
27
}
Original file line number Diff line number Diff line change @@ -7,14 +7,8 @@ import type {
7
7
Thunk ,
8
8
} from 'graphql' ;
9
9
10
- // TS_SPECIFIC: This type is only exported by TypeScript
11
- export type MutationFn = (
12
- object : any ,
13
- ctx : any ,
14
- info : GraphQLResolveInfo ,
15
- ) => unknown ;
10
+ type MutationFn = ( object : any , ctx : any , info : GraphQLResolveInfo ) => unknown ;
16
11
17
- // TS_SPECIFIC: This type is only exported by TypeScript
18
12
/**
19
13
* A description of a mutation consumable by mutationWithClientMutationId
20
14
* to create a GraphQLFieldConfig for that mutation.
@@ -29,7 +23,7 @@ export type MutationFn = (
29
23
* input field, and it should return an Object with a key for each
30
24
* output field. It may return synchronously, or return a Promise.
31
25
*/
32
- export interface MutationConfig {
26
+ interface MutationConfig {
33
27
name : string ;
34
28
description ?: string ;
35
29
deprecationReason ?: string ;
Original file line number Diff line number Diff line change @@ -5,8 +5,7 @@ import type {
5
5
GraphQLTypeResolver ,
6
6
} from 'graphql' ;
7
7
8
- // TS_SPECIFIC: This type is only exported by TypeScript
9
- export interface GraphQLNodeDefinitions < TContext > {
8
+ interface GraphQLNodeDefinitions < TContext > {
10
9
nodeInterface : GraphQLInterfaceType ;
11
10
nodeField : GraphQLFieldConfig < any , TContext > ;
12
11
nodesField : GraphQLFieldConfig < any , TContext > ;
@@ -31,8 +30,7 @@ export function nodeDefinitions<TContext>(
31
30
typeResolver ?: GraphQLTypeResolver < any , TContext > ,
32
31
) : GraphQLNodeDefinitions < TContext > ;
33
32
34
- // TS_SPECIFIC: This type is only exported by TypeScript
35
- export interface ResolvedGlobalId {
33
+ interface ResolvedGlobalId {
36
34
type : string ;
37
35
id : string ;
38
36
}
Original file line number Diff line number Diff line change @@ -5,8 +5,7 @@ import type {
5
5
GraphQLResolveInfo ,
6
6
} from 'graphql' ;
7
7
8
- // TS_SPECIFIC: This type is only exported by TypeScript
9
- export interface PluralIdentifyingRootFieldConfig {
8
+ interface PluralIdentifyingRootFieldConfig {
10
9
argName : string ;
11
10
inputType : GraphQLInputType ;
12
11
outputType : GraphQLOutputType ;
You can’t perform that action at this time.
0 commit comments