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

TSLint: handle errors in kbn_internal_native_observable types. #20705

Merged

Conversation

azasypkin
Copy link
Member

It turned out .d.ts file can be ignored by TSLint (due to palantir/tslint#3966) so core/lib/kbn_internal_native_observable/index.d.ts managed to bypass the checks.

Unfortunately if TSLint settings will change the issues in this file won't be detected automatically, unless this file is changed and validated by commit hook. But since this file isn't going to be modified and will be removed relatively soon I just fixed current issues for now (added license header, removed deprecated declare namespace in favor of single export and reordered some class members).

How to test:

$ yarn tslint src/core/lib/kbn_internal_native_observable/index.d.ts --project tsconfig.json

@azasypkin azasypkin added chore Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc Feature:New Platform v6.4.0 labels Jul 12, 2018
Copy link
Contributor

@timroes timroes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good to me, tested that file passes tslint (which given command).

@elasticmachine
Copy link
Contributor

💔 Build Failed

@azasypkin
Copy link
Member Author

aaaand flaky selenium test :/

@azasypkin
Copy link
Member Author

retest

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@azasypkin azasypkin merged commit 875008a into elastic:master Jul 12, 2018
@azasypkin azasypkin deleted the issue-xxx-fix-kbn-observable-types branch July 12, 2018 09:47
azasypkin added a commit to azasypkin/kibana that referenced this pull request Jul 12, 2018
@azasypkin
Copy link
Member Author

6.x/6.4: b77a3a0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backported chore Feature:New Platform Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc v6.4.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants