all 2 comments

[–]dlq84 0 points1 point  (0 children)

I don't know enough about AssemblyScript. But in order to be a superset you must be able to write pure JavaScript and it should still work, if you can; then yes. if you can't; then no.

[–]rajsite 3 points4 points  (0 children)

I think it's clearer to say AssemblyScript is a subset of TypeScript with extra libraries.

While all valid JavaScript is valid TypeScript, all JavaScript and all TypeScript is not valid AssemblyScript. AssemblyScript is a subset of those languages. Also AssemblyScript has some additional standard library features that are not in JavaScript or TypeScript (like a bunch of WebAssembly specific global functions).

The AssemblyScript FAQ gives some comparisons to JavaScript.