I'd much prefer that optional type annotations make it into the spec, like they did for Python and PHP.
Re:Why the New V8 Is So Damn Fast
by mxkxkucikf on Tuesday July 31, 2018 @08:33AM
(#17652625)
Typescript being a superset of javascript does allow optional type annotations. RTFM.
i think they mean, make it into the JS spec.
It would definitely help moving sections of the code up the tier ladder, not unlike Web Assembly.
I even predict that future typescript versions would include stricter typings optimized for an browser to solve problems like others have mentioned in the thread.
Or just a TypeScript engine in the browser, like ehm Dartium. I guess someone at Microsoft already did this on IE in a hackathon or something.