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

Function assertGraphQLInterfaceType

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

Source from the content-addressed store, hash-verified

35 throw new Error('Expected GraphQLScalerType.');
36}
37export function assertGraphQLInterfaceType(input: unknown): asserts input is GraphQLInterfaceType {
38 if (input instanceof GraphQLInterfaceType) {
39 return;
40 }
41 throw new Error('Expected GraphQLInterfaceType.');
42}
43export function assertGraphQLUnionType(input: unknown): asserts input is GraphQLUnionType {
44 if (input instanceof GraphQLUnionType) {
45 return;

Calls

no outgoing calls

Tested by

no test coverage detected