You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This was previously blocked because it ran Kibana's build out of memory. Kibana has since increased its allocated memory and also restructured a lot of the build process, so we should be good to go:
Task: convert src/index.js to typescript; will need to account for the existing definitions in src/index.d.ts as well.
Testing:
node ./scripts/compile-eui.js (which is a part of yarn build) will create the build artifacts, including eui.d.ts through dtsgenerator + customizations (the follow-ups mentioned in the comment on line 95 are out of scope for this issue)
when the above successfully generates the intended eui.d.ts file, we'll need to test in Kibana
@chandlerprall / @thompsongl - one point of clarification - this issue only mentions src/index.js but it looks like src/components/index.js will need to be converted as well. Can I confirm those are the only 2 files in scope?
That sounds correct. packages/react-datepicker/ is also in play by way of src/index.d.ts, but it does not need to be converted to TS, just dealt with in some way that allows the conversion of src/index.js and src/components/index.js.
Activity
thompsongl commentedon Aug 16, 2021
@constancecchen Some prior work in a now unknown state 😅: #4695
I'm going to close that PR, but feel free to revive or take over my branch
cee-chen commentedon Aug 16, 2021
@chandlerprall / @thompsongl - one point of clarification - this issue only mentions
src/index.jsbut it looks likesrc/components/index.jswill need to be converted as well. Can I confirm those are the only 2 files in scope?thompsongl commentedon Aug 17, 2021
That sounds correct.
packages/react-datepicker/is also in play by way ofsrc/index.d.ts, but it does not need to be converted to TS, just dealt with in some way that allows the conversion ofsrc/index.jsandsrc/components/index.js.cee-chen commentedon Aug 17, 2021
Definitely not in scope for this ticket, but out of curiosity do we ever want to convert the various .js files
icon/assetsto .ts? Shouldn't be that much effort tbh, although also not sure it matters 🤔 Reference: https://github.com/elastic/eui/tree/master/src/components/icon/assets