DistributiveOmit
Remove properties K
from T
. Functions similar to Omit<T, K>
type helper
but it is distributive.
See
Example
type A = { a: string; b: number; c: boolean }
type Test = DistributiveOmit<A, 'a' | 'b'> // { c: boolean }