Skip to content

Commit b735092

Browse files
committed
Fix TS types
1 parent 088990e commit b735092

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/connection/arrayconnection.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,6 @@ export function cursorForObjectInConnection<T>(
7878
* otherwise it will be the default.
7979
*/
8080
export function getOffsetWithDefault(
81-
cursor?: ConnectionCursor | null,
81+
cursor: ConnectionCursor | null | undefined,
8282
defaultOffset: number,
8383
): number;

src/connection/arrayconnection.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ export function cursorForObjectInConnection<T>(
153153
* otherwise it will be the default.
154154
*/
155155
export function getOffsetWithDefault(
156-
cursor?: ?ConnectionCursor,
156+
cursor: ConnectionCursor | null | void,
157157
defaultOffset: number,
158158
): number {
159159
if (typeof cursor !== 'string') {

src/node/node.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import type {
22
GraphQLFieldConfig,
3+
GraphQLInterfaceType,
34
GraphQLResolveInfo,
45
GraphQLTypeResolver,
56
} from 'graphql';

0 commit comments

Comments
 (0)