TypeScript 4.5, Function Overloading, Const Enums

TypeScript Weekly

Issue #181 — November 25, 2021

Announcing TypeScript 4.5

TypeScript 4.5 has been released! It implements the Awaited type which improves promise typing, introduces a way to override a specific built-in lib in a manner similar to how @types/ support works, and, as always, ships with many other improvements.

Daniel Rosenwasser

Function Overloading in TypeScript

Some JavaScript functions accept a variable number of arguments, or arguments of different types; some functions even return different types, depending on how they are invoked. TypeScript’s function overloads allow us to model this behavior in the type system.

TypeScript Engineer at Fully Remote US Consultancy (React, Node)

Join Uplift and work on a variety of projects using the latest technologies. Build web and mobile apps using TypeScript, React, Node, GraphQL. Interact directly with our clients and enjoy a flexible schedule to maximize your work-life balance.

Uplift Ltd (sponsored)

Optimizing Enums in TypeScript with const

A brief overview of how the const modifier changes the JavaScript code that the TypeScript compiler will emit for a given enum.

Todd Motto

Quokka.js: Quickly test your TypeScript code on the fly

Quokka allows you to test your TypeScript code without leaving your code editor, results are displayed right next to your code and updated immediately, as you type. Highly recommended for any TS/JS developer, especially for those learning the basics.

Wallaby Team (sponsored)

TypeScript vs. JSDoc JavaScript

TypeScript has long had a good static typing story. Thanks to TypeScript support for JSDoc, JavaScript can be statically type checked as well.

John Reilly

Older messages

How the Compiler Compiles, Mastering Template Literal Types

Friday, November 12, 2021

TypeScript Weekly Issue #180 — November 11, 2021 How the TypeScript Compiler Compiles A systems-level look at the TypeScript compiler: how it converts a file into an intermediate representation, checks

TypeScript 4.5 RC, Type or Treat Challenges

Friday, November 5, 2021

TypeScript Weekly Issue #179 — November 4, 2021 Announcing TypeScript 4.5 RC The release candidate of TypeScript 4.5 has been released. It implements the Awaited type which improves promise typing,

Sharing Types Between Repos, Index Signatures

Thursday, September 23, 2021

TypeScript Weekly Issue #178 — September 23, 2021 Sharing Types between Backend and Frontend Repos How to keep TypeScript types in sync between a backend and frontend project in different repos, using

TypeScript 4.4, In Defense of any

Thursday, September 16, 2021

TypeScript Weekly Issue #177 — September 16, 2021 Announcing TypeScript 4.4 TypeScript 4.4 has been released and brings control flow analysis of aliased conditions, a new flag for exact optional

TypeScript 4.4 RC, The First TypeScript Demo

Thursday, August 19, 2021

TypeScript Weekly Issue #176 — August 19, 2021 Announcing TypeScript 4.4 RC The release candidate of TypeScript 4.4 is out and brings control flow analysis of aliased conditions, a new flag for exact

You Might Also Like

🔥 Announcing Galileo Protect: Real-Time Hallucination Firewall*

Monday, May 6, 2024

Unveiling Galileo Protect – the first GenAI firewall built for the enterprise! ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏ ͏

Siri's AI upgrade 🤖, Tesla Supercharger chaos ⚡, AI engineer burnout 👨‍💻

Monday, May 6, 2024

Safari, Spotlight Search, and Siri will gain significant AI-related enhancements. Apple's AI model will generate basic responses entirely on-device. Sign Up |Advertise|View Online TLDR Together

80% Off iPhone Photo Academy!

Monday, May 6, 2024

Hi there, Are you ready to dramatically improve your iPhone photography skills? We all know that the iPhone camera is extremely powerful, but most of us still manage to take a lot of photos that aren

Architecture Weekly #178 - 6th May 2024

Monday, May 6, 2024

This time, we discussed biases. Biases on the perspective on our technologies, so not seeing their evolutions. We also checked how biases can impact our knowledge, collaboration and eventually also the

WP Weekly 192 - WP Biz - Brands Merged, Woo Cart Popup, Fastest Hosting

Monday, May 6, 2024

Read on Website WP Weekly 192 / WP Biz The 'business of WordPress' is buzzing for sure, be it the acquisition of plugins or the massive Envato ownership change. Also, WordPress content brands

SRE Weekly Issue #423

Monday, May 6, 2024

View on sreweekly.com A message from our sponsor, FireHydrant: FireHydrant is now AI-powered for faster, smarter incidents! Power up your incidents with auto-generated real-time summaries,

⚠️ Avoiding AI Scams on Social Media — An Open Source Google Photos Alternative

Sunday, May 5, 2024

Also: Reviewing the Customizable Drop Mechanical Keyboard, and More! How-To Geek Logo May 5, 2024 📩 Get expert reviews, the hottest deals, how-to's, breaking news, and more delivered directly to

Daily Coding Problem: Problem #1432 [Medium]

Sunday, May 5, 2024

Daily Coding Problem Good morning! Here's your coding interview problem for today. This question was asked by Snapchat. Given the head to a singly linked list, where each node also has a “random”

PD#572 Good Ideas in Computer Science

Sunday, May 5, 2024

Ideas every programmer likes and why Garbage Collection and Object Oriented Programming don't count ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌

RD#454 API Layer & Fetch Functions

Sunday, May 5, 2024

ixing API and UI code quickly leads to messy and unmaintainable code ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌ ‌