4 ms·
Does anybody here know where to go to have conversations with the TypeScript team about adding browser features to better support TypeScript? A lot was happeni
by dfabulich 6y ago
Does anybody here know where to go to have conversations with the TypeScript team about adding browser features to better support TypeScript?
A lot was happening back in 2018. A Googler put together a proposal to add ignorable "pluggable" type annotations to JavaScript, which would allow browsers to run TypeScript directly without transpilation (and without type checking). https://github.com/samuelgoto/proposal-pluggable-types https://github.com/samuelgoto/proposal-pluggable-types
And a member of the TypeScript team at Microsoft put together a proposal to add enums to JS. https://github.com/rbuckton/proposal-enum https://github.com/rbuckton/proposal-enum
Neither one of these seem to be active. What happened? What would it be like to get these landed?
- Vinnl 6y agoI'm not sure if it's what you mean, but the optional chaining [1] feature added to Javascript (and hence browsers) was championed among others by the TypeScript team. [1] https://github.com/tc39/proposal-optional-chaining https://github.com/tc39/proposal-optional-chaining
- smt88 6y agoTypeScript already supports writing type defs as comments in JS files. You get the static checking benefits of TypeScript and can run your code in a browser. It also has enum support. If someone wants to add enums to EcmaScript, it has nothing to do with TypeScript or their team.
- hoten 6y agoyup, via JSDoc.