@@ -3,13 +3,14 @@ import {
3
3
GraphQLField ,
4
4
GraphQLArgument ,
5
5
isNonNullType ,
6
+ GraphQLInterfaceType ,
6
7
} from 'graphql' ;
7
8
8
9
import { Change , CriticalityLevel } from './change' ;
9
10
import { safeChangeForField } from '../utils/graphql' ;
10
11
11
12
export function fieldRemoved (
12
- type : GraphQLObjectType ,
13
+ type : GraphQLObjectType | GraphQLInterfaceType ,
13
14
field : GraphQLField < any , any , any > ,
14
15
) : Change {
15
16
return {
@@ -27,7 +28,7 @@ export function fieldRemoved(
27
28
}
28
29
29
30
export function fieldAdded (
30
- type : GraphQLObjectType ,
31
+ type : GraphQLObjectType | GraphQLInterfaceType ,
31
32
field : GraphQLField < any , any , any > ,
32
33
) : Change {
33
34
return {
@@ -40,7 +41,7 @@ export function fieldAdded(
40
41
}
41
42
42
43
export function fieldDescriptionChanged (
43
- type : GraphQLObjectType ,
44
+ type : GraphQLObjectType | GraphQLInterfaceType ,
44
45
oldField : GraphQLField < any , any > ,
45
46
newField : GraphQLField < any , any > ,
46
47
) : Change {
@@ -56,7 +57,7 @@ export function fieldDescriptionChanged(
56
57
}
57
58
58
59
export function fieldDeprecationReasonChanged (
59
- type : GraphQLObjectType ,
60
+ type : GraphQLObjectType | GraphQLInterfaceType ,
60
61
oldField : GraphQLField < any , any > ,
61
62
newField : GraphQLField < any , any > ,
62
63
) : Change {
@@ -74,7 +75,7 @@ export function fieldDeprecationReasonChanged(
74
75
}
75
76
76
77
export function fieldTypeChanged (
77
- type : GraphQLObjectType ,
78
+ type : GraphQLObjectType | GraphQLInterfaceType ,
78
79
oldField : GraphQLField < any , any , any > ,
79
80
newField : GraphQLField < any , any , any > ,
80
81
) : Change {
@@ -92,7 +93,7 @@ export function fieldTypeChanged(
92
93
}
93
94
94
95
export function fieldArgumentAdded (
95
- type : GraphQLObjectType ,
96
+ type : GraphQLObjectType | GraphQLInterfaceType ,
96
97
field : GraphQLField < any , any , any > ,
97
98
arg : GraphQLArgument ,
98
99
) : Change {
@@ -113,7 +114,7 @@ export function fieldArgumentAdded(
113
114
}
114
115
115
116
export function fieldArgumentRemoved (
116
- type : GraphQLObjectType ,
117
+ type : GraphQLObjectType | GraphQLInterfaceType ,
117
118
field : GraphQLField < any , any , any > ,
118
119
arg : GraphQLArgument ,
119
120
) : Change {
0 commit comments