Distributing Pick<T, K>/Omit<T,K> over union types in TypeScript
CRANK
Disclaimer: this article assumes intermediate knowledge of both TypeScript and React. Concepts you should be familiar with include Higher Order Components and utility TypeScript types such as Pick<T, K> and Omit<T, K>. A few weeks ago at work, we were trying to use a