( input: ASTNode, )
| 72 | throw new Error(`Expected ObjectTypeDefinitionNode. Got ${input.kind}`); |
| 73 | } |
| 74 | export 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 | } |
| 82 | export function assertUnionTypeDefinitionNode( |
| 83 | input: ASTNode, |
| 84 | ): asserts input is UnionTypeDefinitionNode { |
nothing calls this directly
no outgoing calls
no test coverage detected