Comments (8)
I see!Really appreciate it for your repling and updating. thanks for your nice work on the NextGenAs.
from dts2as.
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.
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.
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.
Hi Josh, Thanks for your hard work on flexjs and as3 tools.
Is there any progress on this issue?
from dts2as.
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.
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.
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)
- Parameters with different TS types in function overloads are converted to AS Object instead of a common base type
- Add argument to enable function parameters and properties to be typed as strict interfaces instead of falling back to Object
- Treat all uppercase properties as constants (with setting to disable, if needed)
- asjsc warns about missing classes that appear in lib.d.ts but not in externs HOT 1
- TypeError: Cannot read property 'pos' of undefined HOT 5
- Windows 10: "no such file or directory" and "was unexpected at this time" errors HOT 12
- Fix build on Windows
- Update to TypeScript 1.7
- Cannot compile SWC when other d.ts files are referenced, unless they are included in dts2as arguments
- Cannot parse TypeScript enums in d.ts files
- --flexHome and other arguments can't handle ~ for home directory in path
- Error when try to convert pixi.js.d.ts to pixijs.swc HOT 3
- Angular Material/AngularJS conversion issue HOT 9
- Tonejs problem HOT 3
- Errors when generating swc HOT 4
- PIXI SWC issue HOT 3
- dts2as and VSCode HOT 2
- ast2ts HOT 1
- Custom types are not found when populating parameters in functions HOT 3
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 dts2as.