diff --git a/src/plugins/data_views/common/types.ts b/src/plugins/data_views/common/types.ts index 97d76941ea40c..9061c4643dce9 100644 --- a/src/plugins/data_views/common/types.ts +++ b/src/plugins/data_views/common/types.ts @@ -525,3 +525,7 @@ export interface HasDataService { hasUserDataView: () => Promise; hasDataView: () => Promise; } + +export interface ClientConfigType { + scriptedFieldsEnabled?: boolean; +} diff --git a/src/plugins/data_views/public/plugin.ts b/src/plugins/data_views/public/plugin.ts index 223d5e913f8a5..98558c803da10 100644 --- a/src/plugins/data_views/public/plugin.ts +++ b/src/plugins/data_views/public/plugin.ts @@ -9,6 +9,7 @@ import { CoreSetup, CoreStart, Plugin, PluginInitializerContext } from '@kbn/core/public'; import { i18n } from '@kbn/i18n'; import { getIndexPatternLoad } from './expressions'; +import type { ClientConfigType } from '../common/types'; import { DataViewsPublicPluginSetup, DataViewsPublicPluginStart, @@ -16,10 +17,6 @@ import { DataViewsPublicStartDependencies, } from './types'; -interface ClientConfigType { - scriptedFieldsEnabled?: boolean; -} - import { DataViewsApiClient } from '.'; import { ContentMagementWrapper } from './content_management_wrapper'; diff --git a/src/plugins/data_views/server/plugin.ts b/src/plugins/data_views/server/plugin.ts index 6dc98bf0e282d..2be269b1a7636 100644 --- a/src/plugins/data_views/server/plugin.ts +++ b/src/plugins/data_views/server/plugin.ts @@ -15,6 +15,7 @@ import { getIndexPatternLoad } from './expressions'; import { registerIndexPatternsUsageCollector } from './register_index_pattern_usage_collection'; import { createScriptedFieldsDeprecationsConfig } from './deprecations'; import { DATA_VIEW_SAVED_OBJECT_TYPE, LATEST_VERSION } from '../common'; +import type { ClientConfigType } from '../common/types'; import { DataViewsServerPluginSetup, DataViewsServerPluginStart, @@ -23,11 +24,6 @@ import { } from './types'; import { DataViewsStorage } from './content_management'; -// duped, change -interface ClientConfigType { - scriptedFieldsEnabled?: boolean; -} - export class DataViewsServerPlugin implements Plugin<