3 ms·
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.
by sdfsfsf3kjdf 6y 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.
- pjungwir 6y agoThank you both for these tips. I'll see what I can figure out! :-)