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

Function assertGraphQLEnumType

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

Source from the content-addressed store, hash-verified

23 throw new Error('Expected GraphQLObjectType.');
24}
25export function assertGraphQLEnumType(input: unknown): asserts input is GraphQLEnumType {
26 if (input instanceof GraphQLEnumType) {
27 return;
28 }
29 throw new Error('Expected GraphQLObjectType.');
30}
31export function assertGraphQLScalerType(input: unknown): asserts input is GraphQLScalarType {
32 if (input instanceof GraphQLScalarType) {
33 return;

Calls

no outgoing calls

Tested by

no test coverage detected