diff --git a/packages/typescript-eslint/src/config-helper.ts b/packages/typescript-eslint/src/config-helper.ts index dd366b70cdbf..61d63b8a6b82 100644 --- a/packages/typescript-eslint/src/config-helper.ts +++ b/packages/typescript-eslint/src/config-helper.ts @@ -18,7 +18,7 @@ TODO - convert this to /utils/ts-eslint */ import type { TSESLint } from '@typescript-eslint/utils'; -interface ConfigWithExtends extends TSESLint.FlatConfig.Config { +export interface ConfigWithExtends extends TSESLint.FlatConfig.Config { /** * Allows you to "extend" a set of configs similar to `extends` from the * classic configs. diff --git a/packages/typescript-eslint/src/index.ts b/packages/typescript-eslint/src/index.ts index 078b4c670117..20074daf4b42 100644 --- a/packages/typescript-eslint/src/index.ts +++ b/packages/typescript-eslint/src/index.ts @@ -3,6 +3,7 @@ import * as parserBase from '@typescript-eslint/parser'; // see the comment in config-helper.ts for why this doesn't use /ts-eslint import type { TSESLint } from '@typescript-eslint/utils'; +import type { ConfigWithExtends } from './config-helper'; import { config } from './config-helper'; import allConfig from './configs/all'; import baseConfig from './configs/base'; @@ -45,6 +46,7 @@ const configs = { }; export type Config = TSESLint.FlatConfig.ConfigFile; +export type { ConfigWithExtends }; /* eslint-disable-next-line import/no-default-export -- we do both a default and named exports to allow people to use this package from