The Single-Valued Type Pattern, Stop Using any

TypeScript Weekly

Issue #154 — October 20, 2020

The Single-Valued Type Pattern for TypeScript

How to build flexible generic APIs by pulling runtime and type variations into a constant that’s statically passed into related functions at every call site.

Drew Colthorp

Understanding TypeScript Generics

An introduction to the utilization of Generics in TypeScript with examples grounded in real-world use cases, such as collections, approaches to error handling, the Repository Pattern, and so on.

Jamie Corkhill

Stop Using any, There’s a Type For That

“Chances are you’ve worked with the any type in TypeScript. It’s widely overused, and subtly dangerous. Let’s explore why you should avoid it, and when you might truly need to use it.”

Alejandro Dustet, Wil Hall

Documenting Your TypeScript Projects: There Are Options

How to use TSDoc and TypeDoc to help you document your TypeScript projects.

Fernando Doglio

Create TypeScript Declarations from JavaScript and JSDoc

How to generate TypeScript type declaration files directly from JavaScript files using information in JSDoc comments.

Nicholas C. Zakas

Older messages

Template Literal Types, Deno and TypeScript

Thursday, October 1, 2020

TypeScript Weekly Issue #153 — October 1, 2020 TypeScript Template Literal Types A foray into template literal types, a powerful feature that will ship as part of the upcoming TypeScript 4.1 release.

TypeScript 4.1 Beta, TS-SQL

Thursday, September 24, 2020

TypeScript Weekly Issue #152 — September 24, 2020 Announcing TypeScript 4.1 Beta TypeScript 4.0 was just released, but the beta release for TypeScript 4.1 is out already. Template literal types and

TypeScript Builders, From Rust to TypeScript

Thursday, September 17, 2020

TypeScript Weekly Issue #151 — September 17, 2020 TypeScript Builders: Improving Your Types One Step at a Time An in-depth walkthrough of how to create a TypeScript builder class to enforce more

Avoid Export Default, Type-Safe Redux

Thursday, September 10, 2020

TypeScript Weekly Issue #150 — September 10, 2020 Avoid Export Default Several reasons for why you might want to prefer named ES2015 exports over default exports. Basarat Ali Syed A Pattern for Type-

TypeScript 4.0, Template String & Recursive Conditional Types

Friday, September 4, 2020

TypeScript Weekly Issue #149 — September 2, 2020 Announcing TypeScript 4.0 TypeScript 4.0 has been released and brings some exciting new features, including variadic tuple types, labeled tuple elements

You Might Also Like

💎 Issue 449 - JRuby with JBang

Thursday, December 26, 2024

This week's Awesome Ruby Newsletter Read this email on the Web The Awesome Ruby Newsletter Issue » 449 Release Date Dec 26, 2024 Your weekly report of the most popular Ruby news, articles and

💻 Issue 449 - JavaScript Benchmarking Is a Mess

Thursday, December 26, 2024

This week's Awesome JavaScript Weekly Read this email on the Web The Awesome JavaScript Weekly Issue » 449 Release Date Dec 26, 2024 Your weekly report of the most popular JavaScript news, articles

📱 Issue 443 - EU asks for views on plan to force Apple to open up iOS

Thursday, December 26, 2024

This week's Awesome iOS Weekly Read this email on the Web The Awesome iOS Weekly Issue » 443 Release Date Dec 26, 2024 Your weekly report of the most popular iOS news, articles and projects Popular

💻 Issue 442 - SOLID: The Liskov Substitution Principle (LSP) in C#

Thursday, December 26, 2024

This week's Awesome .NET Weekly Read this email on the Web The Awesome .NET Weekly Issue » 442 Release Date Dec 26, 2024 Your weekly report of the most popular .NET news, articles and projects

Daily Coding Problem: Problem #1649 [Easy]

Thursday, December 26, 2024

Daily Coding Problem Good morning! Here's your coding interview problem for today. This problem was asked by Dropbox. Spreadsheets often use this alphabetical encoding for its columns: "A

JSK Daily for Dec 26, 2024

Thursday, December 26, 2024

JSK Daily for Dec 26, 2024 View this email in your browser A community curated daily e-mail of JavaScript news Performance Optimization in React Pivot Table with Data Compression The Syncfusion React

📱 Issue 446 - Fatbobman's Swift Weekly #063

Thursday, December 26, 2024

This week's Awesome Swift Weekly Read this email on the Web The Awesome Swift Weekly Issue » 446 Release Date Dec 26, 2024 Your weekly report of the most popular Swift news, articles and projects

💻 Issue 444 - Four limitations of Rust’s borrow checker

Thursday, December 26, 2024

This week's Awesome Rust Weekly Read this email on the Web The Awesome Rust Weekly Issue » 444 Release Date Dec 26, 2024 Your weekly report of the most popular Rust news, articles and projects

💻 Issue 367 - React 19: A New Era of Web Development

Thursday, December 26, 2024

This week's Awesome React Weekly Read this email on the Web The Awesome React Weekly Issue » 367 Release Date Dec 26, 2024 Your weekly report of the most popular React news, articles and projects

💻 Issue 449 - Node.js 2025 Guide: How to Setup Express.js with TypeScript, ESLint, and Prettier

Thursday, December 26, 2024

This week's Awesome Node.js Weekly Read this email on the Web The Awesome Node.js Weekly Issue » 449 Release Date Dec 26, 2024 Your weekly report of the most popular Node.js news, articles and