Skip to content

Conversation

@thompsongl
Copy link
Contributor

@thompsongl thompsongl commented Feb 9, 2022

Summary

Adds an explicit return type of CSSProperties to resolveWidthAsStyle (table util) to avoid a verbose inferred type resulting in hundreds of cssType imports in the shape of:

WebkitTransform?: import("csstype").Property.Transform | undefined;

Previously, the verbosity was present, but did not use an import:

WebkitTransform?: string | undefined;

This change will eliminate ~700s line from eui.d.ts

Checklist

  • Checked for breaking changes and labeled appropriately
  • A changelog entry exists and is marked appropriately

@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_5615/

@thompsongl thompsongl marked this pull request as ready for review February 9, 2022 21:09
Copy link
Contributor

@chandlerprall chandlerprall left a comment

Choose a reason for hiding this comment

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

LGTM!

@kibanamachine
Copy link

Preview documentation changes for this PR: https://eui.elastic.co/pr_5615/

@thompsongl thompsongl merged commit db29986 into elastic:main Feb 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants