Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

explicitly export core mock types #81527

Closed
wants to merge 1 commit into from

Conversation

mshustov
Copy link
Contributor

Summary

Fixes build error https://kibana-ci.elastic.co/job/elastic+kibana+pipeline-pull-request/83411/execution/node/105/log/ in #81177
Other TS project configs include 'global' typings

"../../../typings/**/*"

Which shouldn't be a requirement for them. It's rather a temporary workaround. In the ideal case, we should import all global types explicitly from @kbn/utility-types. Unfortunately, I didn't manage to find a way to move jest.Mocked type there #76785 (comment)
@mistic Can it be a problem for the migration to the Bazel toolchain?

@mshustov mshustov added chore v8.0.0 release_note:skip Skip the PR/issue when compiling release notes v7.11.0 labels Oct 22, 2020
@mshustov mshustov requested a review from a team as a code owner October 22, 2020 18:54
@mshustov mshustov requested a review from a team October 22, 2020 18:54
@mshustov
Copy link
Contributor Author

FYI @elastic/kibana-operations

@spalger
Copy link
Contributor

spalger commented Oct 22, 2020

I really hate globals, is it really too much to ask that these types get imported everywhere they are used?

@mshustov
Copy link
Contributor Author

I really hate globals, is it really too much to ask that these types get imported everywhere?

@spalger probably it's okay...also we could try to include them automatically for all the TS project (with https://www.typescriptlang.org/tsconfig#typeRoots in tsconfig.base.json, for example). I can experiment with this approach on Monday

@spalger
Copy link
Contributor

spalger commented Oct 22, 2020

include them automatically for all the TS project

Sounds like another way to add more globals.

@mshustov mshustov marked this pull request as draft October 22, 2020 19:14
@kibanamachine
Copy link
Contributor

kibanamachine commented Oct 22, 2020

@mshustov
Copy link
Contributor Author

closed in favour of #81739

@mshustov mshustov closed this Oct 29, 2020
@mshustov mshustov deleted the export-mock-types branch October 29, 2020 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore release_note:skip Skip the PR/issue when compiling release notes v7.11.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants