Giter Site home page Giter Site logo

Comments (11)

MichalCz avatar MichalCz commented on August 25, 2024

Hi @intellix, thanks for reporting this.

I'll look into how much work it is. The TS.d file is generated from jsdoc, I made a lot of modification in it to make it compile but without an automated test I can't really know if the docs are bang on perfect (and therefore the TS.d).

If you have an idea for an automated test and could create a repo with it, then I could add this to my CI settings and make sure everything is up to date.
Eventually I'd like to rewrite all tests to typescript and most of scramjet as well.

from scramjet.

MichalCz avatar MichalCz commented on August 25, 2024

@intellix would you be interested in helping out and setting a test repo for this?

What I need is a repo and a set of commands that in the end would result in an exit status that I could base my test on.

from scramjet.

MichalCz avatar MichalCz commented on August 25, 2024

Ok, so I've done some research around this and I'm going to rebuild the whole generation of documentation based solely on d.ts files. I managed to get very good code hinting with generic code.

I'll update this issue with the branch, where I'm going to work on this.

I found a way to do interface checks on js files which was the biggest dillema.

from scramjet.

MichalCz avatar MichalCz commented on August 25, 2024

ScramjetOptions is now fixed. Better typings will be here in 4.29.

from scramjet.

deman4ik avatar deman4ik commented on August 25, 2024

Typescript typings still broken in 4.29
Screenshot 2020-05-11 at 19 15 32

from scramjet.

MichalCz avatar MichalCz commented on August 25, 2024

@deman4ik yes, I'm still trying to make the compiler not to get into a loop and at the same time be able to fully support internal function typings (hint for instance map -> map operation).

This works in VSCode, but compiling against this causes call stack exceeded errors. :/

from scramjet.

MichalCz avatar MichalCz commented on August 25, 2024

@intellix @deman4ik can you guys check [email protected]?

from scramjet.

deman4ik avatar deman4ik commented on August 25, 2024

@MichalCz seems good.
Thank you for your work!

from scramjet.

MichalCz avatar MichalCz commented on August 25, 2024

@deman4ik @intellix guys, another major rewrite of the d.ts files - can you check how this works now.

I removed completely the declare module thing and replaced it by top level declarations - these seem to work well for me and I see that the node.js stream inheritance now works well, although it would be good to know if that worked in an actual typescript project.

from scramjet.

deman4ik avatar deman4ik commented on August 25, 2024

@MichalCz Updated to 4.33.0. TS build is fine in my project without any changes. 👍

from scramjet.

MichalCz avatar MichalCz commented on August 25, 2024

Great. :)

from scramjet.

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.