Skip to content

[6.x] Upgrade typescript to 2.9.2 (#20757)#20865

Merged
weltenwort merged 1 commit intoelastic:6.xfrom
weltenwort:backport/6.x/pr-20757
Jul 17, 2018
Merged

[6.x] Upgrade typescript to 2.9.2 (#20757)#20865
weltenwort merged 1 commit intoelastic:6.xfrom
weltenwort:backport/6.x/pr-20757

Conversation

@weltenwort
Copy link
Member

Backports the following commits to 6.x:

This upgrades TypeScript to version 2.9.2. My main motivation is the support for generic type arguments in JSX elements and tagged templates (e.g. for `styled-components`).

Problems arising from breaking changes in the new TypeScript version have been mitigated by:

* setting the `keyofStringsOnly` option until impacted code has been
  future-proofed
* Restricting some joi-related generics

See the [release notes](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-9.html) for details.

Some follow-up tasks should be:

* Update EUI to support the new `keyof` behaviour
* Update new platform TypeScript code to support new `keyof` behaviour
* Remove `keyofStringsOnly` setting
@weltenwort weltenwort added the backport This PR is a backport of another PR label Jul 16, 2018
@weltenwort weltenwort self-assigned this Jul 16, 2018
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@weltenwort weltenwort merged commit 021ca43 into elastic:6.x Jul 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants