diff --git a/index.d.ts b/index.d.ts index 323f38a..89e8efe 100644 --- a/index.d.ts +++ b/index.d.ts @@ -1,19 +1,15 @@ import { type Linter, type Rule } from "eslint"; +type JestDomPluginConfigName = 'all' | 'recommended'; + declare const plugin: { meta: { name: string; version: string; }; - configs: { - all: Linter.LegacyConfig; - recommended: Linter.LegacyConfig; - "flat/all": Linter.FlatConfig; - "flat/recommended": Linter.FlatConfig; - }; - rules: { - [key: string]: Rule.RuleModule; - }; + configs: Record & + Record<`flat/${JestDomPluginConfigName}`, Linter.FlatConfig>; + rules: Record; }; export = plugin;