Comments (7)
I created a repo where a complete Typescript re-write was done in order to produce the highest quality typescript definitions.
https://github.mktp.io/tosimpe/es-components-types
The Types
folder contains all declarations for all the es-componenets
libraries.
If possible, this folder could be shipped via npm
with the library beit the package.json
file is updated with the types
property.
This would ensure nothing must be done after installing the module to make it typescript compatible. Also, I believe the developer experience in both a javascript env as well typescript env dramatically is improved. Consumers will see all the documentation directly in there editor as opposed to navigating to it in their browser. And all expected types are discoverable in the editor as well.
from es-components.
@jrios @stevematney @Darrken @aabenoja Is there someone I can talk to about this?
from es-components.
We take pull requests
from es-components.
If there is consensus, we can definitely see about migrating the repo to typescript. I see that you've done a large part of the work already in the repository you linked above. I think it would be foolhardy to try and do one fell swoop replacement, but if you'd like to see about introducing typescript for a single component, we can test it out before moving more in more of them.
How does that sound? @Darrken @stevematney @aabenoja @tosimpe
from es-components.
We take pull requests
@aabenoja this is not very constructive. let's try and keep things constructive here.
from es-components.
That sounds like a good plan, @jrios. I'd also feel more comfortable with piecemeal conversions rather than one huge PR.
from es-components.
I will be very busy through the end of the year else I would certainly offer up PR's. I wanted to get a feeling for interest before considering that though.
Currently, We are using patch-package
with a npm
post install script to include all the Typescript declarations into the node_modules/es-components/
and node_modules/es-components-wtw-theme
directories. This ensures our project is fully typesafe and all the documentation for es-components can be found in editor.
I would not recommend a single PR either. The conversion repo I did was just to get the declarations and I made some shortcuts while converting js to ts that would break some of it. The repo does however contain proper JSDOC comments for most components though so even if go no TS route, I think there is a mass benefit to grabbing those from my personal repo.
from es-components.
Related Issues (20)
- Spacing variables
- useWindowWidth ignores body margin. HOT 4
- Modal no longer scrolls content
- Date field allows the letter e, and other math symbols
- Popover Module unable to open on certain screen sizes
- Cannot tab backwards from DropdownButton
- Add Accessibility Testing to PRs HOT 3
- Tooltip is rendered under SlidingPane
- Hard Coded Domain Vulnerability
- Add more relative sizes to via-theme (small / large)
- v22 - Next Major Release
- Parity issues between BDA Toolkit, Sketch and ES Components HOT 7
- Validation Examples not working
- Popover styleType does not apply the style
- CheckboxGroup is uncontrollable after mounting
- Allow focus method to be called for household icons HOT 2
- DropdownButton component doesn't allow a user to navigate back to the previously focusable element.
- Fieldset component has CSS that is overriding standard color attribute
- Popover hasAltCloseButton prop prevents screenreader from reading content HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from es-components.