MyOmit
MediumImplement MyOmit — opposite of Pick. It should exclude specified keys from the type.
TypeScript•UTF-8
Run your code to see results.
Click the Run button above
MyOmit
MediumImplement MyOmit — opposite of Pick. It should exclude specified keys from the type.
Examples:
Input 1: type Example = MyOmit<User, "age">
Output 1: { id: number; name: string }
Output
Run your code to see results.