Skip to content

Commit

Permalink
Solve TS problems
Browse files Browse the repository at this point in the history
  • Loading branch information
stratoula committed Sep 1, 2021
1 parent 924c0c0 commit b882621
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,7 @@ interface FieldlessOperationDefinition<C extends BaseIndexPatternColumn> {
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;
/**
Expand Down Expand Up @@ -387,6 +388,7 @@ interface FieldBasedOperationDefinition<C extends BaseIndexPatternColumn> {
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;
Expand Down

0 comments on commit b882621

Please sign in to comment.