Occasionally trips me up in TypeScript. Should the return type of .at() be changed? Alas, I see pros and cons.
function f(arr: Array<T>) {
arr[arr.length-1]; // T
arr .at(-1); // T | undefined
}
I've got a new role (remote friendly) for a senior lead on our DevRel team. The team will build a new strategy for Chrome Dev Summit, our presence at IO, dev feedback and how we launch stable guidance that's not just launching feature after feature.
careers.google.com/jobs/resu…
🤙
TypeScript 4.4 is here!
Now with
✔ Smarter Control Flow Analysis
✔ Symbol & Pattern Indexers
✔ Stricter Checks
✔ Speed Improvements
✔ Inlay Hints
✔ Revamped --help
and more! Read up more on our blog! devblogs.microsoft.com/types…
ALT A preview of inlay hints in Visual Studio Code. The code instantiates a 'Color' class and gets inlay hints for the parameters.