This content originally appeared on 2ality – JavaScript and more and was authored by Dr. Axel Rauschmayer
The ECMAScript proposal “Types as comments” (by Gil Tayar, Daniel Rosenwasser, Romulo Cintra, Rob Palmer, and others) is about adding type annotations to JavaScript (there is also an accompanying blog post).
Such type annotations would look similar to TypeScript’s and Flow’s annotations and are completely ignored at runtime.
In this blog post, I briefly explain how the proposed type annotations would work and then describe what I think about them.
This content originally appeared on 2ality – JavaScript and more and was authored by Dr. Axel Rauschmayer
Dr. Axel Rauschmayer | Sciencx (2022-03-09T00:00:00+00:00) First look: adding type annotations to JavaScript. Retrieved from https://www.scien.cx/2022/03/09/first-look-adding-type-annotations-to-javascript/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.