Hacker News new | past | comments | ask | show | jobs | submit login

I ran into this exact issue when I was working on a piece of typescript that interoperates with a rust server, here's how I was able to do exhaustiveness checking (the errors aren't the prettiest, but it works): https://github.com/wwtos/mjuo/blob/main/vpo-frontend/src/lib...

EDIT: and an example of usage: https://github.com/wwtos/mjuo/blob/ca8c514185c1b5bb22aec752a...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: