You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can say Omit<UserWithName, keyof User> to get that type instead, which I also think is nicer because it clearly shows that I want all fields in UserWithName that isn't in User whereas the name UserWithNameAllOf doesn't carry any information.
In our project, we have around 30 of these AllOf and all of them are a single discriminator field that gets its own AllOf type which is just noise here.
What are the steps to reproduce this issue?
Given the spec
I get
Which is correctly, by the
AllOf
is kinda redundant.What were you expecting to happen?
Which is equivalent, but nicer.
…
Any logs, error output, etc?
…
Any other comments?
I can see that some people might want to have it as a separate type, but the names quickly become long and ugly.
Maybe it should be a configuration option?
What versions are you using?
The text was updated successfully, but these errors were encountered: