Malindu Warapitiya

@malindu.dev

TypeScript 6.0 is now available! This release brings better type-checking for methods, new standard library features, new module features for Node.js, and more! But most important, this release brings us one step closer to the upcoming native-speed 7.0! devblogs.microsoft.com/typescript/a...

Announcing TypeScript 6.0 - TypeScript

TypeScript 6.0 is now available! TypeScript 6 is a stepping-stone release, aligning with the upcoming native-speed 7.0 release.

devblogs.microsoft.com

Try the latest <color-input> concept: ⚓️ anchor() progressive enhancement 🤖 workers for color compute 🙈 new animations & interactions 🎨 gamut boundaries, mapping, stretching ☯️ contrast scores & much more nerdy.dev/rfc-latest-c...

BildBildBildBild

📚 Creating thin abstractions is easy, until you’re trying to build them on top of functions that heavily rely on generics. Then it can quickly turn into a nightmare. I wrote about the tradeoffs of wrapping useQuery and why type inference makes this trickier than it looks.

Creating Query Abstractions

Building reusable abstractions on top of libraries that rely on type inference can be deceptively difficult, which is why we need better ways to build those abstractions ...

tkdodo.eu

Note that this doesn't happen with @tanstack.com start server functions because unlike "directives", they are actually typed so you'll get a Promise on type level and linting can tell you if you forget to await it. So types are good I guess, who would've thought 🤷‍♂️

MRK@marma.dev · 10mo ago

How our "perfect" one-line isOwner() function in Next.js started always returning true. Spoiler: It is because of server functions... Wrote about the bug, the fix, and the "magic" that caused it: marma.dev/articles/202... #webdev #javascript #typescript #react #nextjs #serverfunctions

Just hit the “publish” button on a brand-new blog post! ⭐ This one shares the killer pattern I find myself using over and over with container queries: responding *within* media queries to adapt to the new container size. Once you start using this trick, you’ll see opportunities for it all over. 😄

Container Queries Unleashed • Josh W. Comeau

Container queries expand the universe of designs that can be implemented, giving us whole new superpowers. Now that container queries are broadly available, I think it’s time we start exploring this p...

joshwcomeau.com