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

Function assertInterfaceTypeDefinitionNode

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

Source from the content-addressed store, hash-verified

72 throw new Error(`Expected ObjectTypeDefinitionNode. Got ${input.kind}`);
73}
74export function assertInterfaceTypeDefinitionNode(
75 input: ASTNode,
76): asserts input is InterfaceTypeDefinitionNode {
77 if (input.kind === 'InterfaceTypeDefinition') {
78 return;
79 }
80 throw new Error(`Expected InterfaceTypeDefinitionNode. Got ${input.kind}`);
81}
82export function assertUnionTypeDefinitionNode(
83 input: ASTNode,
84): asserts input is UnionTypeDefinitionNode {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected