From b8826213362f81283b4c28c103f225c48cf2a606 Mon Sep 17 00:00:00 2001 From: Stratoula Kalafateli Date: Wed, 1 Sep 2021 10:47:35 +0300 Subject: [PATCH] Solve TS problems --- src/plugins/kibana_legacy/public/angular/angular_config.tsx | 2 +- .../indexpattern_datasource/operations/definitions/index.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plugins/kibana_legacy/public/angular/angular_config.tsx b/src/plugins/kibana_legacy/public/angular/angular_config.tsx index 48ee6d2db269e..5f6b5336e40d1 100644 --- a/src/plugins/kibana_legacy/public/angular/angular_config.tsx +++ b/src/plugins/kibana_legacy/public/angular/angular_config.tsx @@ -76,7 +76,7 @@ export const configureAppAngularModule = ( isLocalAngular: boolean, getHistory?: () => History ) => { - const core = 'core' in newPlatform ? newPlatform.core : newPlatform; + const core = ('core' in newPlatform ? newPlatform.core : newPlatform) as CoreStart; const packageInfo = newPlatform.env.packageInfo; angularModule diff --git a/x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/index.ts b/x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/index.ts index 569045f39877e..3746b4b34dd61 100644 --- a/x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/index.ts +++ b/x-pack/plugins/lens/public/indexpattern_datasource/operations/definitions/index.ts @@ -346,6 +346,7 @@ interface FieldlessOperationDefinition { arg: BaseBuildColumnArgs & { previousColumn?: IndexPatternColumn; }, + // @ts-ignore, TS not able to dig into this depth, https://github.com/elastic/kibana/issues/110761 columnParams?: (IndexPatternColumn & C)['params'] ) => C; /** @@ -387,6 +388,7 @@ interface FieldBasedOperationDefinition { field: IndexPatternField; previousColumn?: IndexPatternColumn; }, + // @ts-ignore, TS not able to dig into this depth, https://github.com/elastic/kibana/issues/110761 columnParams?: (IndexPatternColumn & C)['params'] & { kql?: string; lucene?: string;