Giter Club home page Giter Club logo

Comments (7)

 avatar commented on July 30, 2024

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.

 avatar commented on July 30, 2024

@jrios @stevematney @Darrken @aabenoja Is there someone I can talk to about this?

from es-components.

aabenoja avatar aabenoja commented on July 30, 2024

We take pull requests

from es-components.

jrios avatar jrios commented on July 30, 2024

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.

jrios avatar jrios commented on July 30, 2024

We take pull requests

@aabenoja this is not very constructive. let's try and keep things constructive here.

from es-components.

Darrken avatar Darrken commented on July 30, 2024

That sounds like a good plan, @jrios. I'd also feel more comfortable with piecemeal conversions rather than one huge PR.

from es-components.

 avatar commented on July 30, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.