Skip to content

Commit 7079de2

Browse files
authored
fix(experimental-utils): fix types for eslint-utils (#4173)
1 parent d57141a commit 7079de2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/experimental-utils/src/ast-utils/eslint-utils/ReferenceTracker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ namespace ReferenceTracker {
8383
node: TSESTree.Node;
8484
path: readonly string[];
8585
type: ReferenceType;
86-
entry: T;
86+
info: T;
8787
}
8888
}
8989

packages/experimental-utils/src/ast-utils/eslint-utils/astUtilities.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ const getFunctionNameWithKind = eslintUtils.getFunctionNameWithKind as (
2525
| TSESTree.FunctionDeclaration
2626
| TSESTree.FunctionExpression
2727
| TSESTree.ArrowFunctionExpression,
28+
sourceCode?: TSESLint.SourceCode,
2829
) => string;
2930

3031
/**
@@ -38,7 +39,8 @@ const getPropertyName = eslintUtils.getPropertyName as (
3839
node:
3940
| TSESTree.MemberExpression
4041
| TSESTree.Property
41-
| TSESTree.MethodDefinition,
42+
| TSESTree.MethodDefinition
43+
| TSESTree.PropertyDefinition,
4244
initialScope?: TSESLint.Scope.Scope,
4345
) => string | null;
4446

0 commit comments

Comments
 (0)