File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -1831,7 +1831,7 @@ export namespace Linter {
18311831 }
18321832
18331833 /** @deprecated Use `Config` instead of `FlatConfig` */
1834- type FlatConfig = Config ;
1834+ type FlatConfig < Rules extends RulesRecord = RulesRecord > = Config < Rules > ;
18351835
18361836 type GlobalConf =
18371837 | boolean
Original file line number Diff line number Diff line change @@ -2135,6 +2135,12 @@ let flatConfig!: Linter.FlatConfig;
21352135config = flatConfig ;
21362136flatConfig = config ;
21372137
2138+ let configWithRules ! : Linter . Config < ESLintRules > ;
2139+ let flatConfigWithRules ! : Linter . FlatConfig < ESLintRules > ;
2140+ configWithRules = flatConfigWithRules ;
2141+ flatConfigWithRules = configWithRules ;
2142+ flatConfigWithRules . rules ; // $ExpectType Partial<ESLintRules> | undefined
2143+
21382144// #endregion Config
21392145
21402146// #region Plugins
You can’t perform that action at this time.
0 commit comments