Hacker News new | past | comments | ask | show | jobs | submit login

Do you mean in TypeScript or in another language?

In TS the `Omit<T, K>` type can be used to remove stuff, and intersection can be used to add stuff




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: