diff --git a/packages/kbn-monaco/src/esql/index.ts b/packages/kbn-monaco/src/esql/index.ts index 4b50a222ad2d6..9f0bbb7b64c7d 100644 --- a/packages/kbn-monaco/src/esql/index.ts +++ b/packages/kbn-monaco/src/esql/index.ts @@ -6,7 +6,7 @@ * Side Public License, v 1. */ -import { LangModule as LangModuleType } from '../types'; +import { LangModuleType } from '../types'; import { ID } from './constants'; import { lexerRules } from './lexer_rules'; diff --git a/packages/kbn-monaco/src/helpers.ts b/packages/kbn-monaco/src/helpers.ts index e525b8c132132..25040bc1a55f1 100644 --- a/packages/kbn-monaco/src/helpers.ts +++ b/packages/kbn-monaco/src/helpers.ts @@ -6,7 +6,7 @@ * Side Public License, v 1. */ import { monaco } from './monaco_imports'; -import { LangModule as LangModuleType } from './types'; +import { LangModuleType } from './types'; function registerLanguage(language: LangModuleType) { const { ID, lexerRules, languageConfiguration } = language; diff --git a/packages/kbn-monaco/src/index.ts b/packages/kbn-monaco/src/index.ts index 85d3518461a49..5394a46b142db 100644 --- a/packages/kbn-monaco/src/index.ts +++ b/packages/kbn-monaco/src/index.ts @@ -11,14 +11,11 @@ import './register_globals'; export { monaco } from './monaco_imports'; export { XJsonLang } from './xjson'; -export { PainlessLang, PainlessContext, PainlessAutocompleteField } from './painless'; +export * from './painless'; /* eslint-disable-next-line @kbn/eslint/module_migration */ import * as BarePluginApi from 'monaco-editor/esm/vs/editor/editor.api'; import { registerLanguage } from './helpers'; -import { - LangModule as LangModuleType, - CompleteLangModule as CompleteLangModuleType, -} from './types'; -export { BarePluginApi, registerLanguage, LangModuleType, CompleteLangModuleType }; +export { BarePluginApi, registerLanguage }; +export * from './types'; diff --git a/packages/kbn-monaco/src/painless/index.ts b/packages/kbn-monaco/src/painless/index.ts index 9863204117b12..3bba7643e28b6 100644 --- a/packages/kbn-monaco/src/painless/index.ts +++ b/packages/kbn-monaco/src/painless/index.ts @@ -9,7 +9,7 @@ import { ID } from './constants'; import { lexerRules, languageConfiguration } from './lexer_rules'; import { getSuggestionProvider, getSyntaxErrors } from './language'; -import { CompleteLangModule as CompleteLangModuleType } from '../types'; +import { CompleteLangModuleType } from '../types'; export const PainlessLang: CompleteLangModuleType = { ID, @@ -19,4 +19,4 @@ export const PainlessLang: CompleteLangModuleType = { getSyntaxErrors, }; -export { PainlessContext, PainlessAutocompleteField } from './types'; +export * from './types'; diff --git a/packages/kbn-monaco/src/types.ts b/packages/kbn-monaco/src/types.ts index f977ada5b624b..0e20021bf69eb 100644 --- a/packages/kbn-monaco/src/types.ts +++ b/packages/kbn-monaco/src/types.ts @@ -7,7 +7,7 @@ */ import { monaco } from './monaco_imports'; -export interface LangModule { +export interface LangModuleType { ID: string; lexerRules: monaco.languages.IMonarchLanguage; languageConfiguration?: monaco.languages.LanguageConfiguration; @@ -15,7 +15,7 @@ export interface LangModule { getSyntaxErrors?: Function; } -export interface CompleteLangModule extends LangModule { +export interface CompleteLangModuleType extends LangModuleType { languageConfiguration: monaco.languages.LanguageConfiguration; getSuggestionProvider: Function; getSyntaxErrors: Function; diff --git a/packages/kbn-monaco/src/xjson/index.ts b/packages/kbn-monaco/src/xjson/index.ts index e9ece97ac0023..a376f627eade5 100644 --- a/packages/kbn-monaco/src/xjson/index.ts +++ b/packages/kbn-monaco/src/xjson/index.ts @@ -12,6 +12,6 @@ import './language'; import { ID } from './constants'; import { lexerRules, languageConfiguration } from './lexer_rules'; -import { LangModule as LangModuleType } from '../types'; +import { LangModuleType } from '../types'; export const XJsonLang: LangModuleType = { ID, lexerRules, languageConfiguration };