We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent edaa3c1 commit f022fb1Copy full SHA for f022fb1
packages/experimental-utils/src/ts-eslint/Rule.ts
@@ -112,11 +112,16 @@ interface RuleFixer {
112
replaceTextRange(range: AST.Range, text: string): RuleFix;
113
}
114
115
+interface SuggestionReportDescriptor<TMessageIds extends string>
116
+ extends Omit<ReportDescriptorBase<TMessageIds>, 'fix'> {
117
+ readonly fix: ReportFixFunction;
118
+}
119
+
120
type ReportFixFunction = (
121
fixer: RuleFixer,
122
) => null | RuleFix | readonly RuleFix[] | IterableIterator<RuleFix>;
123
type ReportSuggestionArray<TMessageIds extends string> =
- ReportDescriptorBase<TMessageIds>[];
124
+ SuggestionReportDescriptor<TMessageIds>[];
125
126
interface ReportDescriptorBase<TMessageIds extends string> {
127
/**
0 commit comments