|
|
|
|
|
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. |
|