Daniel Rearden
danielrearden.bsky.social
Daniel Rearden
@danielrearden.bsky.social
Engineering @contra.com 🔨 | he/him | TypeScript and SQL enthusiast | Lead with kindness, empathy and humility or don't lead at all
Reposted by Daniel Rearden
Woah, `ref` as a function is secretly so powerful.

No more `undefined` checks and useEffects just to add some document event listeners. Handle everything with a function in-line 👍
December 6, 2024 at 1:13 PM
I’m not a huge fan of Result types but this sort of nuanced behavior is definitely a strong argument in their favor.
7 year old post by @jakearchibald.com, and I still link to it regularly. Helped me really understand async/await better: jakearchibald.com/2017/await-v...

Is there a lint rule that enforces return await in try/catch blocks when a promise is returned?
await vs return vs return await
jakearchibald.com
November 28, 2024 at 12:08 PM
Reposted by Daniel Rearden
📢 TypeScript 5.7 is here! Now with

✅ Better checks for uninitialized variables
✅ Smarter tsconfig lookup in editors
✅ Improved startup time
✅ Stricter checks for JSON imports
✅ Extension rewrites for relative imports

and more! Try it today!

devblogs.microsoft.com/typescript/a...
Announcing TypeScript 5.7 - TypeScript
Today we excited to announce the availability of TypeScript 5.7! If you’re not familiar with TypeScript, it’s a language that builds on JavaScript by adding syntax for type declarations and annotation...
devblogs.microsoft.com
November 22, 2024 at 6:56 PM
@ssalbdivad.dev curious if you think @arktype.io’s approach to parsing strings into types could be extended to be used with languages like SQL or GraphQL? Aside from the complexity of that endeavor, do you think we’d likely hit a wall in terms of editor performance?
November 22, 2024 at 12:05 PM
Reposted by Daniel Rearden
🌠 The best icon pack in the world right now, IMO, is Lucide (lucide.dev).

It builds on @colebemis.com’s incredible work with Feather Icons, extending it from ~300 icons to >1500.

It has fully-typed bindings for React and many other frameworks. And I just found out: they’re even more optimized! 🧵
November 20, 2024 at 3:52 PM
Reposted by Daniel Rearden
BIG UPDATE: Our 2.0 release candidate is almost fully stable, and we just published a ton of new docs at arktype.io 🎉

Still more to go, but we hope you find them helpful if you're interested in trying ArkType!
ArkType
TypeScript's 1:1 validator, optimized from editor to runtime
arktype.io
November 20, 2024 at 7:22 PM
Reposted by Daniel Rearden
Really digging this Node.js tool called ni! ❤️ It's been a lifesaver in my Node.js projects – no more fumbling with different package managers. Big shoutout to @antfu.me for creating it!

ni - install
nr - run
nu - upgrade
nun - uninstall
(...and more)

github.com/antfu-collec...
GitHub - antfu-collective/ni: 💡 Use the right package manager
💡 Use the right package manager. Contribute to antfu-collective/ni development by creating an account on GitHub.
github.com
November 19, 2024 at 11:58 PM
Let's go! 🔥 Champing at the bit to take the beta for a spin
November 20, 2024 at 1:01 AM