MCPcopy Create free account
hub / github.com/ardatan/graphql-tools / assertGraphQLUnionType

Function assertGraphQLUnionType

packages/testing/assertion.ts:43–48  ·  view source on GitHub ↗
(input: unknown)

Source from the content-addressed store, hash-verified

41 throw new Error('Expected GraphQLInterfaceType.');
42}
43export function assertGraphQLUnionType(input: unknown): asserts input is GraphQLUnionType {
44 if (input instanceof GraphQLUnionType) {
45 return;
46 }
47 throw new Error('Expected GraphQLUnionType.');
48}
49export function assertGraphQLInputObjectType(
50 input: unknown,
51): asserts input is GraphQLInputObjectType {

Calls

no outgoing calls

Tested by

no test coverage detected