File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed
packages/typescript-eslint/src Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -66,6 +66,9 @@ export interface ConfigWithExtends extends TSESLint.FlatConfig.Config {
6666 extends ?: InfiniteDepthConfigWithExtends [ ] ;
6767}
6868
69+ // exported so that users that make configs with tsconfig `declaration: true` can name the type
70+ export type ConfigArray = TSESLint . FlatConfig . ConfigArray ;
71+
6972/**
7073 * Utility function to make it easy to strictly type your "Flat" config file
7174 * @example
@@ -88,7 +91,7 @@ export interface ConfigWithExtends extends TSESLint.FlatConfig.Config {
8891 */
8992export function config (
9093 ...configs : InfiniteDepthConfigWithExtends [ ]
91- ) : TSESLint . FlatConfig . ConfigArray {
94+ ) : ConfigArray {
9295 const flattened =
9396 // @ts -expect-error -- intentionally an infinite type
9497 configs . flat ( Infinity ) as ConfigWithExtends [ ] ;
Original file line number Diff line number Diff line change @@ -186,4 +186,9 @@ export default {
186186} ;
187187export { configs , parser , plugin } ;
188188
189- export { config , type ConfigWithExtends } from './config-helper' ;
189+ export {
190+ config ,
191+ type ConfigWithExtends ,
192+ type InfiniteDepthConfigWithExtends ,
193+ type ConfigArray ,
194+ } from './config-helper' ;
You can’t perform that action at this time.
0 commit comments