Skip to content

Commit

Permalink
Merge pull request #6 from stratoula/fix-vis-editors-failures
Browse files Browse the repository at this point in the history
Solve TS problems in kibana-vis-editors files
  • Loading branch information
tylersmalley authored Sep 1, 2021
2 parents a6c8e07 + b882621 commit d4bc9e0
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 d4bc9e0

Please sign in to comment.