Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
sdfsfsf3kjdf
· 5y ago · 0 comments
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.
Comments
[–]
pjungwir
5y ago
Thank you both for these tips. I'll see what I can figure out! :-)