Questions about TypeScript compatibility and Hermes[main] support #1587
Replies: 1 comment 7 replies
-
Hi, You mentioned ESM. Unfortunately that is a very complicated topic which is out of our hands, because it depends on modifying the existing bundlers. For some more details: Your other question was about TypeScript support. We intend to eventually support as much of TypeScript as we can, however it is not our primary focus at the moment, because we are concentrating on completing the basics of the sound type system. When that is finished, we will eventually gradually map more TS features to it. Keep in mind that TypeScript is an extremely complicated language, and a lot of its features (like structural typing) are not compatible with a fast and sound typed implementation. |
Beta Was this translation helpful? Give feedback.
-
I tried out Static Hermes today, and I’m really excited about the performance! However, during the testing process, I had some questions:
It seems like the current version of SH only supports TypeScript at a very basic level. Features like
interface
,IntersectionType
, Class inheritance, and many other syntax features don't seem to be supported.I understand that fully supporting all TypeScript syntax is nearly impossible, but I’m wondering about SH's future development. Will it continue to improve TypeScript syntax compatibility (it almost feels like you're building a TypeScript runtime)? Or is there a compatibility solution (such as using a JS compiler to remove highly flexible and unsupported TypeScript syntax before SH compilation)?
Additionally, I’d like to understand whether the development of SH will continue to impact the progress of the current Hermes main version. I noticed that the Hermes version seems to have not updated its language feature support for quite a while, including support for things like Async functions, ES modules, Classes, and method definitions that were mentioned in the documentation some time ago.
Beta Was this translation helpful? Give feedback.
All reactions