Files
danak-console/src/helpers/types.ts
T
hamid zarghami 6cb43e42b2 structure
2024-12-23 15:09:11 +03:30

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,
}