(
node: TSESTree.Node,
types: ReadonlyArray<T>,
)
| 4 | |
| 5 | export const ASTUtils = { |
| 6 | isNodeOfOneOf<T extends AST_NODE_TYPES>( |
| 7 | node: TSESTree.Node, |
| 8 | types: ReadonlyArray<T>, |
| 9 | ): node is TSESTree.Node & { type: T } { |
| 10 | return types.includes(node.type as T) |
| 11 | }, |
| 12 | isIdentifier(node: TSESTree.Node): node is TSESTree.Identifier { |
| 13 | return node.type === AST_NODE_TYPES.Identifier |
| 14 | }, |
nothing calls this directly
no outgoing calls
no test coverage detected