Skip to content

Commit 86cf20e

Browse files
committed
fix return type for assertNonNullType
1 parent 4a48ef0 commit 86cf20e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: src/type/definition.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,9 @@ export function isNonNullType(
183183
return instanceOf(type, GraphQLNonNull);
184184
}
185185

186-
export function assertNonNullType(type: unknown): GraphQLNonNull<GraphQLType> {
186+
export function assertNonNullType(
187+
type: unknown,
188+
): GraphQLNonNull<GraphQLNullableType> {
187189
if (!isNonNullType(type)) {
188190
throw new Error(`Expected ${inspect(type)} to be a GraphQL Non-Null type.`);
189191
}

0 commit comments

Comments
 (0)