Skip to content

Commit 222e139

Browse files
chore: fix broken type import
1 parent b00530b commit 222e139

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/rules/prefer-tacit.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import type { TSESTree } from "@typescript-eslint/experimental-utils";
2-
import type { ReportDescriptor } from "@typescript-eslint/experimental-utils/dist/ts-eslint";
1+
import type { TSESLint, TSESTree } from "@typescript-eslint/experimental-utils";
32
import { deepmerge } from "deepmerge-ts";
43
import type { JSONSchema4 } from "json-schema";
54
import type { FunctionLikeDeclaration, Type } from "typescript";
@@ -127,7 +126,7 @@ function getCallDescriptors(
127126
context: RuleContext<keyof typeof errorMessages, Options>,
128127
options: Options,
129128
caller: TSESTree.CallExpression
130-
): Array<ReportDescriptor<keyof typeof errorMessages>> {
129+
): Array<TSESLint.ReportDescriptor<keyof typeof errorMessages>> {
131130
if (
132131
isIdentifier(caller.callee) &&
133132
node.params.length === caller.arguments.length &&
@@ -180,7 +179,7 @@ function getDirectCallDescriptors(
180179
| TSESTree.FunctionExpression,
181180
context: RuleContext<keyof typeof errorMessages, Options>,
182181
options: Options
183-
): Array<ReportDescriptor<keyof typeof errorMessages>> {
182+
): Array<TSESLint.ReportDescriptor<keyof typeof errorMessages>> {
184183
if (isCallExpression(node.body)) {
185184
return getCallDescriptors(node, context, options, node.body);
186185
}
@@ -197,7 +196,7 @@ function getNestedCallDescriptors(
197196
| TSESTree.FunctionExpression,
198197
context: RuleContext<keyof typeof errorMessages, Options>,
199198
options: Options
200-
): Array<ReportDescriptor<keyof typeof errorMessages>> {
199+
): Array<TSESLint.ReportDescriptor<keyof typeof errorMessages>> {
201200
if (
202201
isBlockStatement(node.body) &&
203202
node.body.body.length === 1 &&

0 commit comments

Comments
 (0)