subtract an interface subset B from its superset A.
B
A
the subset type
th superset type
type C = SubtractSubset<{ a: number, c?: symbol }, { a: number, b: string, c: symbol }>// type C == { b: string } Copy
type C = SubtractSubset<{ a: number, c?: symbol }, { a: number, b: string, c: symbol }>// type C == { b: string }
Generated using TypeDoc
subtract an interface subset
B
from its supersetA
.