Skip to content

Commit d256856

Browse files
fix(experimental-utils): fix isSetter's return type (typescript-eslint#3975)
1 parent 8896464 commit d256856

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/experimental-utils/src/ast-utils/predicates.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ const isConstructor = isNodeOfTypeWithConditions(
155155
*/
156156
function isSetter(
157157
node: TSESTree.Node | undefined,
158-
): node is TSESTree.MethodDefinition | TSESTree.Property {
158+
): node is (TSESTree.MethodDefinition | TSESTree.Property) & { kind: 'set' } {
159159
return (
160160
!!node &&
161161
(node.type === AST_NODE_TYPES.MethodDefinition ||

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy