-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Omit enhancement #57481
Comments
You might want to modify your issue, because right now it's absolutely unclear what you're suggesting or asking for. I suggest to use the "Feature Request" issue template. |
check now :) |
This was suggested numerous times already and has been declined, e.g. #30825. That's also why the issue templates ask for used search terms to find existing issues (at least the bug report one does). |
Also see #54451 |
Here's an enhanced version of the
Omit
type that uses the type parameterT
instead ofany
to ensure type safety:In this version,
K
extendskeyof T
, meaningK
can only be a key that exists within the typeT
. This ensures that you cannot omit a key that doesn't belong to the object typeT
, thereby preventing errors when selecting keys to omit.The text was updated successfully, but these errors were encountered: