Hacker News new | ask | show | jobs
by sdfsfsf3kjdf 1958 days ago
In Rust you can solve this via derive or a macro. Typescript's conditional types and the associated utility types are a nice solution to this problem as well. You can do a ton with Partial, Required, Pick, Omit, Exclude etc.
1 comments

Thank you both for these tips. I'll see what I can figure out! :-)