( input: ASTNode, )
| 64 | throw new Error('Expected EnumTypeDefinitionNode.'); |
| 65 | } |
| 66 | export function assertObjectTypeDefinitionNode( |
| 67 | input: ASTNode, |
| 68 | ): asserts input is ObjectTypeDefinitionNode { |
| 69 | if (input.kind === 'ObjectTypeDefinition') { |
| 70 | return; |
| 71 | } |
| 72 | throw new Error(`Expected ObjectTypeDefinitionNode. Got ${input.kind}`); |
| 73 | } |
| 74 | export function assertInterfaceTypeDefinitionNode( |
| 75 | input: ASTNode, |
| 76 | ): asserts input is InterfaceTypeDefinitionNode { |