3 ms·
Typescript treats import and export as first class citizens. When using it in my scripts it pulls in not only the module but also typings for that module as wel
by Kequc 10y ago
Typescript treats import and export as first class citizens. When using it in my scripts it pulls in not only the module but also typings for that module as well.
Of course; Typescript compiles in such a way that Node understands what was intended, it would be nice to compile to ES6 directly. Typescript is ES6 with types. A small change, essentially ignoring types, would require so little processing that it could probably be done live as if it were reading pure ES6.
I think that's within the realm of possibility but would require Node to understand ES6 in its entirety.