10 lines
234 B
TypeScript
10 lines
234 B
TypeScript
type Without<T, U> = { [P in Exclude<keyof T, keyof U>]?: never };
|
|
|
|
export type XOR<T, U> = T | U extends object
|
|
? (Without<T, U> & U) | (Without<U, T> & T)
|
|
: T | U;
|
|
|
|
export type ItemsSelectType = {
|
|
value: any,
|
|
label: string,
|
|
} |