Skip to content

Commit

Permalink
chore(tsutils): remove unused isAccessorNode
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Aug 11, 2019
1 parent 0ad8e56 commit 24f1858
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/rules/tsUtils.ts
Expand Up @@ -232,22 +232,6 @@ type AccessorNode<Specifics extends string = string> =
| StringNode<Specifics>
| KnownIdentifier<Specifics>;

/**
* Checks if the given `node` is an `AccessorExpression` with the specific `value`.
*
* @param {Node} node
* @param {V} accessor
*
* @return {node is SpecificAccessorExpression<V>}
*
* @template V
*/
export const isAccessorNode = <V extends string>(
node: TSESTree.Node,
accessor: V,
): node is AccessorNode<V> =>
isIdentifier(node, accessor) || isStringNode(node, accessor);

interface ExpectCall extends TSESTree.CallExpression {
callee: AccessorNode<'expect'>;
parent: TSESTree.Node;
Expand Down

0 comments on commit 24f1858

Please sign in to comment.