Commits

Alan Orth authored 3626cdf6999
lint/src/util: fix TS2314

Fix error in lint: > lint/src/util/structure.ts:16:20 - error TS2314: Generic type 'RuleMetaData<MessageIds, Options>' requires 2 type argument(s). > > 16 export type Meta = RuleMetaData<string>;
No tags

lint/src/util/structure.ts

Modified
6 6 * http://www.dspace.org/license/
7 7 */
8 8 import {
9 9 InvalidTestCase,
10 10 RuleMetaData,
11 11 RuleModule,
12 12 ValidTestCase,
13 13 } from '@typescript-eslint/utils/ts-eslint';
14 14 import { EnumType } from 'typescript';
15 15
16 -export type Meta = RuleMetaData<string>;
16 +export type Meta = RuleMetaData<string, unknown[]>;
17 17 export type Valid = ValidTestCase<unknown[]>;
18 18 export type Invalid = InvalidTestCase<string, unknown[]>;
19 19
20 20 export interface DSpaceESLintRuleInfo {
21 21 name: string;
22 22 meta: Meta,
23 23 defaultOptions: unknown[],
24 24 }
25 25
26 26 export interface NamedTests {

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut