XOR<T, U>
type XOR<T, U> = T | U extends Record<string, unknown> ? Without<T, U> & U | Without<U, T> & T : T | U;
Defined in: src/types/utilities.ts:13
Type function which allows either types T or U, but not both.
Type Parameters
T
T
U
U
type XOR<T, U> = T | U extends Record<string, unknown> ? Without<T, U> & U | Without<U, T> & T : T | U;
Defined in: src/types/utilities.ts:13
Type function which allows either types T or U, but not both.
T
U