Set difference of union and intersection of given union types A and B.
Signature:
export type Diff<A, B> = StrictExclude<A | B, A & B>References: StrictExclude
// Expect: '2' | '3'
type Foo = Diff<'1' | '2', '1' | '3'>Set difference of union and intersection of given union types A and B.
Signature:
export type Diff<A, B> = StrictExclude<A | B, A & B>References: StrictExclude
// Expect: '2' | '3'
type Foo = Diff<'1' | '2', '1' | '3'>