Skip to content

Commit

Permalink
fix(experimental-utils): fix isSetter's return type (#3975)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDeBoey committed Oct 7, 2021
1 parent 8896464 commit d256856
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/experimental-utils/src/ast-utils/predicates.ts
Expand Up @@ -155,7 +155,7 @@ const isConstructor = isNodeOfTypeWithConditions(
*/
function isSetter(
node: TSESTree.Node | undefined,
): node is TSESTree.MethodDefinition | TSESTree.Property {
): node is (TSESTree.MethodDefinition | TSESTree.Property) & { kind: 'set' } {
return (
!!node &&
(node.type === AST_NODE_TYPES.MethodDefinition ||
Expand Down

0 comments on commit d256856

Please sign in to comment.