Dr. Derek Austin

Results 7 comments of Dr. Derek Austin

I thought changing the RegExp to match brackets would work, but I couldn't seem to get it working.

Thanks for the tip @sam3d, cheers!

@praveenperera Hi! Any update on the JIT mode? I realize that Headwind is broken for JIT mode, but I couldn't sort the RegExp myself.

This workaround helped me in the meantime ```jsx const dropdown = useSpring({ opacity: (showMenu ? 1 : 0) as React.CSSProperties["opacity"], pointerEvents: (showMenu ? "all" : "none") as React.CSSProperties["pointerEvents"], }) ```

@joshuaellis My 2 cents are that it should work without needing to cast or specify the type, which would mean returning the correct `SpringValues` by default 🙂 But this may...

Hi @joshuaellis ! Thanks for the help. Maybe I'm just not understanding the types correctly. This example works in TypeScript: ```tsx import { animated as a, SpringValues, useSpring } from...