-
Notifications
You must be signed in to change notification settings - Fork 0
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
Improve TypeScript Utility Types #21
Comments
Thank you for sharing your idea. I found your approach to enhancing utility types like Omit or Pick through OmitKeyof to be very practical. The idea of improving developer experience by adding auto-completion is particularly impressive. Additionally, by incorporating auto-completion, your solution helps catch potential developer mistakes early, reducing the likelihood of typos and improving code accuracy. |
Hello, @gwansikk., I am concerned about which naming would be most appropriate for this stricter version. I think After checking the TypeScript issue, microsoft/TypeScript#30825, I think it would be better to define it as a new word rather than using the word |
I agree. This is an extension of the |
As a result of my search, I found that StrictOmit is commonly used in other libraries. So, although Strict is said to be ambiguous in terms of TypeScript issues, I think it is appropriate to use it. I think StrictOmit, Except, and OmitByKey are suitable, but I would like to hear your opinion on which one is most suitable. |
I think However, this is just my opinion. If we use the |
I agree with your comment 👌. When we use StrictOmit, the strict version of other built in utility types such as Extract is needed. Thank you for helpul opinion:) |
Hello! I came across an interesting open-source project and wanted to share my thoughts.
In existing utility types like
Omit
orPick
, the Key part doesn't support auto-completion, which can be inconvenient. How about improving these utility types to enhance usability?Below is an example of
Omit
. By usingOmitKeyof
, you can make it more convenient with auto-completion.The text was updated successfully, but these errors were encountered: