Thoughts about upgrading TypeScript version used by PixiJS #9116
Replies: 2 comments 4 replies
-
@Zyie could provide more context here but I remember we were blocked in upgrading which is why it hasn't moved yet. |
Beta Was this translation helpful? Give feedback.
-
From the new typescript I loved the feature that forces you to say override when you override, prevents silly mistakes when making methods and the import types as values thingy set to error to allow further decoupling of code. I am all in for the latest typescript we can get, however with ts5 in the horizon maybe wait for that to release? Also also, we compile with esbuild, so some features of typescript fly out the window during compilation 🤔 |
Beta Was this translation helpful? Give feedback.
-
Upgrading to a higher TypeScript version can be useful, we can make use of new features and new types of TypeScript.
For example, some type definitions are only available in higher version of TypeScript:
WEBGL_compressed_texture_etc/etc1/pvrtc
(Appears in the exported types)Intl.Segmenter
(Internal use only)With TypeScript 4.5+ we can use lib replacement to use a newer version of
lib.dom.d.ts
without upgrading the version of TypeScript itself, see @types/web for details. Sadly there seems to be no such package for types outside oflib.dom.d.ts
(e.g.Intl.Segmenter
).Upgrading to a higher version of TypeScript should be very easy, but I am concerned that this may cause some compatibility issues for users. What do you guys think?
Beta Was this translation helpful? Give feedback.
All reactions