Daniel
prisis.bsky.social
Daniel
@prisis.bsky.social
Constantly exploring new technologies and frameworks to create better developer experiences. Let's connect and build something amazing together! 🚀

TypeScript 🌎 Web ⚛️ Open Source Software💡UI/UX/DX
Even Node.js's new built-in TypeScript support can't strip enum code at runtime!
March 26, 2025 at 11:00 AM
For more examples, explore the new string package for Node.js. You'll find extended string types that you can use in your next project.https://github.com/visulima/visulima/blob/main/packages/string/src/types.ts
visulima/packages/string/src/types.ts at main · visulima/visulima
Visulima is the next-gen JavaScript framework for JAMStack blogs, sites & apps. - visulima/visulima
github.com
March 25, 2025 at 11:00 AM
Which pattern helps you the most?

I've found discriminated unions (#2) to be an absolute game-changer for complex state management.

Follow for more TypeScript + React tips that boost your productivity and code quality! ✨
March 23, 2025 at 6:57 PM
Use type guards to ensure type safety in render methods:
March 23, 2025 at 6:57 PM
Make component refs type-safe:
March 23, 2025 at 6:57 PM
Type React event handlers properly:
March 23, 2025 at 6:57 PM
Use type extraction for component props to keep your code DRY:
March 23, 2025 at 6:57 PM
Leverage React.FC when you need access to children, defaultProps and contextTypes types:
March 23, 2025 at 6:57 PM
Use discriminated unions for component states:
March 23, 2025 at 6:57 PM
Kick off with precise component prop typing:
March 23, 2025 at 6:57 PM