Ugi Stelmokaitis

@ugi.dev

Refining Gravity 🪄 ✨ https://ugi.dev

Been working on a Design System and ran into a great TypeScript nuance that’s easy to miss 👀 The difference between : ThemeSchema vs satisfies ThemeSchema 🧵⬇️

CardStack Interaction 🃏 Smooth shuffle animation using #GSAP. The details are key - timing, easing, and that satisfying snap. What do you think? Any details you'd tweak? Link to CodePen 👇

TypeScript 🛑 Avoiding Invalid States in TypeScript 🛑 Bad example: Mixing states in a "bag of optionals" can lead to issues like this:

TypeScript code snippet showing a discriminated union RequestState with states "loading","loaded","failed" and an example invalid state containing data and error in "loading".