I wrote some code over 2 years ago that can't be properly typed with either Flow or TypeScript, but with the introduction of Variadic Tuple Types coming in TypeScript 4.0, I decided to give this piece of code a second look. We have a function called inner... (more…)
Read more »
When writing a TypeScript library, it’s helpful to validate all the data passed into the library—at least in development—so that your library robustly handles the kinds of bad data it may receive from JavaScript and loose-mode TypeScript consumers. (more…)
Read more »
javascript:
“ One of the Core Web team’s goals at Tumblr is to reduce the number of runtime issues that we see in our React codebase. To help move some of those issues from runtime to compile time, I... (more…)
Read more »
In this post, we are going to present a series of video tutorials that cover some very commonly used Typescript features. This video list will help you get a good overview of the language, because some of the features presented here solve several long-te... (more…)
Read more »
TypeScript 4 is coming up fast: a first beta release is planned for this week (June 25th), with the final release aiming for mid-August.It's… (more…)
Read more »