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

Function assertInputObjectTypeDefinitionNode

packages/testing/assertion.ts:104–111  ·  view source on GitHub ↗
(
  input: ASTNode,
)

Source from the content-addressed store, hash-verified

102 throw new Error(`Expected ScalarTypeDefinitionNode. Got ${input.kind}`);
103}
104export function assertInputObjectTypeDefinitionNode(
105 input: ASTNode,
106): asserts input is InputObjectTypeDefinitionNode {
107 if (input.kind === 'InputObjectTypeDefinition') {
108 return;
109 }
110 throw new Error(`Expected InputObjectTypeDefinitionNode. Got ${input.kind}`);
111}
112export function assertListValueNode(input: ASTNode): asserts input is ListValueNode {
113 if (input.kind === 'ListValue') {
114 return;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected