Giter VIP home page Giter VIP logo

Comments (8)

defchen avatar defchen commented on May 18, 2024 1

I see!Really appreciate it for your repling and updating. thanks for your nice work on the NextGenAs.

from dts2as.

joshtynjala avatar joshtynjala commented on May 18, 2024 1

I have released dts2as 0.12.0. This version now uses TypeScript 2.3 so it should work with newer type definitions. I have confirmed that it can parse the latest type definitions for pixi.js from DefinitelyTyped. There are many libraries that still won't be compatible, though, so don't be surprised if some still fail.

from dts2as.

joshtynjala avatar joshtynjala commented on May 18, 2024

I haven't had a chance to upgrade dts2as to the TypeScript 2.x compiler yet. Type definitions are probably starting to use features that aren't available in the 1.x compiler.

from dts2as.

joshtynjala avatar joshtynjala commented on May 18, 2024

I started work on updating the TypeScript dependency today. That should help after I release the next update. It's worth mentioning that there will probably be many d.ts files that still won't transform, even after the update. You'd be amazed at how complex people make the definitions, instead of going with a more straightforward approach of simple classes. I'm constantly finding strange edge cases that need special workarounds. Using the --exclude command line option with dts2as is very helpful when a particular API is giving you trouble.

from dts2as.

ilushaaa avatar ilushaaa commented on May 18, 2024

Hi Josh, Thanks for your hard work on flexjs and as3 tools.
Is there any progress on this issue?

from dts2as.

joshtynjala avatar joshtynjala commented on May 18, 2024

The latest commits here on Github include support for newer 2.x versions of TypeScript. However, I have not yet released a build of dts2as that includes these changes. I wanted to improve compatibility with some newer d.ts files from DefinitelyTyped before I made a new release. Some of the libraries that used to work with dts2as now result in errors because their d.ts files have started using more complex syntax.

I've been spending most of my time recently preparing the asconfigc and vscode-nextgenas projects for my talk ApacheCon next week, so dts2as and other things have temporarily fallen by the wayside. After ApacheCon, I'll see what I can do about dts2as.

from dts2as.

ilushaaa avatar ilushaaa commented on May 18, 2024

Sounds great!
I am trying to build starling project for web with pixi render. May be that pixi definitions file doesn't have complex syntax and you can generate swc on your side before dts2as tool will get public update? It would help a lot.

from dts2as.

ilushaaa avatar ilushaaa commented on May 18, 2024

Thanks for great support!
I have generated pixi.swc with small definitions editing.

dts2as tool still can't handle construction:

type InteractionEventTypes = InteractionPointerEvents | InteractionTouchEvents | InteractionMouseEvents;

Because parser can't find type InteractionEventTypes in any method.

Looking forward for new versions of flexjs/as3 tools.

from dts2as.

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.