Skip to content

Commit f66395c

Browse files
connection: use proper type for nodeType (#362)
Fixes #352
1 parent 5f00762 commit f66395c

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"eslint-plugin-istanbul": "0.1.2",
5454
"eslint-plugin-node": "11.1.0",
5555
"flow-bin": "0.159.0",
56-
"graphql": "15.5.3",
56+
"graphql": "15.8.0",
5757
"mocha": "9.1.1",
5858
"nyc": "15.1.0",
5959
"prettier": "2.4.0",

src/connection/connection.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type {
22
GraphQLNonNull,
3-
GraphQLNamedType,
3+
GraphQLNamedOutputType,
44
GraphQLScalarType,
55
GraphQLObjectType,
66
GraphQLFieldConfigArgumentMap,
@@ -58,7 +58,7 @@ export interface ConnectionArguments {
5858

5959
export interface ConnectionConfig {
6060
name?: string;
61-
nodeType: GraphQLNamedType | GraphQLNonNull<GraphQLNamedType>;
61+
nodeType: GraphQLNamedOutputType | GraphQLNonNull<GraphQLNamedOutputType>;
6262
resolveNode?: GraphQLFieldResolver<any, any>;
6363
resolveCursor?: GraphQLFieldResolver<any, any>;
6464
edgeFields?: Thunk<GraphQLFieldConfigMap<any, any>>;

src/connection/connection.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
} from 'graphql';
1010

1111
import type {
12-
GraphQLNamedType,
12+
GraphQLNamedOutputType,
1313
GraphQLFieldConfigArgumentMap,
1414
GraphQLFieldConfigMap,
1515
GraphQLFieldResolver,
@@ -77,7 +77,7 @@ export type ConnectionArguments = {
7777

7878
type ConnectionConfig = {
7979
name?: string,
80-
nodeType: GraphQLNamedType | GraphQLNonNull<GraphQLNamedType>,
80+
nodeType: GraphQLNamedOutputType | GraphQLNonNull<GraphQLNamedOutputType>,
8181
resolveNode?: GraphQLFieldResolver<any, any>,
8282
resolveCursor?: GraphQLFieldResolver<any, any>,
8383
edgeFields?: Thunk<GraphQLFieldConfigMap<any, any>>,

0 commit comments

Comments
 (0)