Google Feedback on TypeScript 3.5
github.com
Google Feedback on TypeScript 3.5
1–10 of 149 posts
Re: Google Feedback on TypeScript 3.5
#2Re: Google Feedback on TypeScript 3.5
#3Re: Google Feedback on TypeScript 3.5
#4Re: Google Feedback on TypeScript 3.5
#5When I first started using it I had lots of `any` in my code (like the Google employee is describing here). But over time it really starts being extremely clean.
Re: Google Feedback on TypeScript 3.5
#6Is there a way to migrate jsdoc-annotated JavaScript code over to TS, and is TS's minifier as good as Google's closure-compiler yet?
TS pointedly does not minify output. It does the opposite: try to generate code that a human might have written.
It's very easy to incorporate TS into a Babel or Webpack build pipeline though, so you can use a purpose-built minifier of your choice.
Re: Google Feedback on TypeScript 3.5
#7Is there a way to migrate jsdoc-annotated JavaScript code over to TS, and is TS's minifier as good as Google's closure-compiler yet?
TypeScript does not come with a minifier. The code it produces is compatible with the target version of JavaScript (e.g. compile ES6 modules into CommonJS) but unminified.
Re: Google Feedback on TypeScript 3.5
#8Is there a way to migrate jsdoc-annotated JavaScript code over to TS, and is TS's minifier as good as Google's closure-compiler yet?
Visual Studio Code has a "Code Fix" that can automatically copies JSDoc into TypeScript annotations. This can be done to an entire file at once. TypeScript does not come with a minifier. The code it produces is compatible with the target version of JavaScript (e.g. compile ES6 modules into CommonJS) but unminified.