Skip to content

Commit 385597e

Browse files
Reuse GraphQLWrappingType in 'GraphQLType' definition (#3627)
1 parent 1de3bd3 commit 385597e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/type/definition.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,7 @@ import type { GraphQLSchema } from './schema';
5050
/**
5151
* These are all of the possible kinds of types.
5252
*/
53-
export type GraphQLType =
54-
| GraphQLNamedType
55-
| GraphQLList<GraphQLType>
56-
| GraphQLNonNull<GraphQLNullableType>;
53+
export type GraphQLType = GraphQLNamedType | GraphQLWrappingType;
5754

5855
export function isType(type: unknown): type is GraphQLType {
5956
return (

0 commit comments

Comments
 (0)