bensku / java-ts-bind Goto Github PK
View Code? Open in Web Editor NEWTypeScript bindings for Java with GraalJS
License: MIT License
TypeScript bindings for Java with GraalJS
License: MIT License
Transforming get/setX to x conflicts with existing field/method x. We want to detect that and leave the getters and setters as-is.
Passing JS functions as implementations of Java functional interfaces is supported by GraalJS. Generated types don't support this.
Some dependencies cannot be downloaded before these are sorted out. This is usually not critical, as manually downloading (non-snapshot) jars in CI is easy enough.
GraalJS supports using ju.Map as ES6 Map now, let's use it. This is already done for lists, so should be quick.
Hello!
I'm interested in using this project, but I noticed the project does not have a LICENSE file, is it located elsewhere or maybe an oversite?
Thanks! ๐
Add support for blacklisting types. Fields and methods which have blacklisted types in their signatures should not be generated.
Use TS interfaces to represent Java interfaces. Getters/setters in them need to be transformed to (readonly) fields.
TypeScript represents references to classes as constructor types. Emitting them for method argument types should be reasonably easy, because constructor parameters can be ignored. For returned values, it is much more difficult and probably not worth the effort.
The generator does not properly recognize functional interfaces that have default methods in addition to one "functional" method. In general, defaultness of methods is lost when generating bindings - not ideal.
Heya, @bensku is there any plans to add support for record types?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.