New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OptionalExcept type #811
Comments
I guess this can be achieved somewhat by doing |
Oh, yes, that would work, I hadn't thought of that formulation. I may be misunderstanding the suggested types, but I think it would be like this: SetOptional<User, Exclude<keyof User, 'username'>> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A common use case of making a
Partial
of an object, but leaving a few keys as is.Example:
Upvote & Fund
The text was updated successfully, but these errors were encountered: