Created
December 1, 2025 03:43
-
-
Save anztrax/f90a1ef0ef2acbd0937704e1c5dedfa8 to your computer and use it in GitHub Desktop.
Simple implementation of Omit in typescript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| type MyOmit<T, K extends keyof T> = { | |
| [P in keyof T as P extends K ? never: P] :T[P] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment