import type {IUser} from "@/types/user-d-t";

export type TResponseMessage = { message?: string; status?: string; };

// export type TResponseData<T = any> = { data: T; };
// export type TResponseDataMessage<T = any> = TResponseData<T> & TResponseMessage;
// export type $TResponse<T = any> = TResponseDataMessage<T> | T;
// export type TResponse2<T = any> = { data: T } | T;


type ResponseDataT = Record<string, any>;
type ResponseData<T extends ResponseDataT = ResponseDataT> = T
export type TResponse<T extends ResponseDataT = ResponseDataT> = { data: ResponseData<T> } & T
