diff --git a/src/type/definition.ts b/src/type/definition.ts index 9eea02e8ea..2f9f837cd8 100644 --- a/src/type/definition.ts +++ b/src/type/definition.ts @@ -183,7 +183,9 @@ export function isNonNullType( return instanceOf(type, GraphQLNonNull); } -export function assertNonNullType(type: unknown): GraphQLNonNull { +export function assertNonNullType( + type: unknown, +): GraphQLNonNull { if (!isNonNullType(type)) { throw new Error(`Expected ${inspect(type)} to be a GraphQL Non-Null type.`); } @@ -395,7 +397,7 @@ export class GraphQLNonNull { export type GraphQLWrappingType = | GraphQLList - | GraphQLNonNull; + | GraphQLNonNull; export function isWrappingType(type: unknown): type is GraphQLWrappingType { return isListType(type) || isNonNullType(type);