Files
dzone-front/src/helpers/types.ts
T
hamid zarghami 60750d9648 auth
2025-05-11 11:02:41 +03:30

21 lines
369 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: string;
label: string;
};
export type ErrorType = Error & {
response?: {
data?: {
error: {
message: string[];
};
};
};
};