2019-01-23
1668
#react#typescript
Dan Vanderkam
262
Jan 23, 2019 ⋅ 5 min read

How TypeScript breaks referential transparency

Dan Vanderkam Dan is a Principal Software Engineer at Sidewalk Labs and the author of Effective TypeScript: 62 Specific Ways to Improve Your TypeScript (O'Reilly 2019). He blogs regularly at effectivetypescript.com.

Recent posts:

React Useref Hooks

How to use the React useRef Hook effectively

Learn how to use React useRef for managing references, avoiding re-renders, and applying best practices in functional components.

Rahul Chhodde
Apr 7, 2025 ⋅ 11 min read
How to eliminate render-blocking resources — CSS and JavaScript

How to eliminate render-blocking resources — CSS and JavaScript

Use Lighthouse to eliminate render-blocking resources, which block the first paint of your page, in both CSS and JavaScript.

Anna Monus
Apr 4, 2025 ⋅ 8 min read
Mocking Complex APIs With Mirage JS

Mocking complex APIs with Mirage JS

Mock complex APIs with JavaScript’s Mirage JS library including JWT authentication, relational data, role-based access control, and more.

Emmanuel John
Apr 4, 2025 ⋅ 10 min read
8 best Go web frameworks for 2025

The 8 best Go web frameworks for 2025: Updated list

Looking for the best Go frameworks? Compare the top 8 Go web frameworks for 2025, including Gin, Fiber, Echo, and Beego, with pros, cons, and performance insights.

Victor Jonah
Apr 3, 2025 ⋅ 15 min read
View all posts

One Reply to "How TypeScript breaks referential transparency"

  1. Nowadays in ts we have `as const` which will type out a tuple as the type you expect. (It also works for deeply nested objects)

Leave a Reply