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

Function assertGraphQLScalerType

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

Source from the content-addressed store, hash-verified

29 throw new Error('Expected GraphQLObjectType.');
30}
31export function assertGraphQLScalerType(input: unknown): asserts input is GraphQLScalarType {
32 if (input instanceof GraphQLScalarType) {
33 return;
34 }
35 throw new Error('Expected GraphQLScalerType.');
36}
37export function assertGraphQLInterfaceType(input: unknown): asserts input is GraphQLInterfaceType {
38 if (input instanceof GraphQLInterfaceType) {
39 return;

Calls

no outgoing calls

Tested by

no test coverage detected