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

Function assertGraphQLObjectType

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

Source from the content-addressed store, hash-verified

17} from 'graphql';
18
19export function assertGraphQLObjectType(input: unknown): asserts input is GraphQLObjectType {
20 if (input instanceof GraphQLObjectType) {
21 return;
22 }
23 throw new Error('Expected GraphQLObjectType.');
24}
25export function assertGraphQLEnumType(input: unknown): asserts input is GraphQLEnumType {
26 if (input instanceof GraphQLEnumType) {
27 return;

Calls

no outgoing calls

Tested by

no test coverage detected