amitmerchant1990 / amitmerchant-dot-com-comments

1 stars 0 forks source link

typescript-private-modifier-vs-ecmascript-hash-private-fields/ #32

Open utterances-bot opened 3 years ago

utterances-bot commented 3 years ago

TypeScript's private modifiers Vs. ECMAScript's hash(#) private fields – Amit Merchant – A blog on PHP, JavaScript, and more

With the release of TypeScript 3.8, the team has introduced support for the ECMAScript Private Fields into the TypeScript itself. Meaning, you can now declare private fields in the class using # like so.

https://www.amitmerchant.com/typescript-private-modifier-vs-ecmascript-hash-private-fields/

zzzgit commented 3 years ago

是否可以改進ts的編譯器,使之編譯出js-like的代碼?