fix TS error
deploy to danak / build_and_deploy (push) Has been cancelled

This commit is contained in:
2026-07-20 23:59:16 +03:30
parent 6b2d241eb2
commit e28a0d611e
2 changed files with 15 additions and 5 deletions
+13 -3
View File
@@ -51,8 +51,18 @@ export type RoleItemType = {
export type RolesResponseType = BaseResponse<RoleItemType[]>;
export type AdminDetailResponseType = BaseResponse<AdminItemType>;
/** Admin "me" response: admin with full role including permissions */
export type AdminMeDataType = Omit<AdminItemType, "role"> & {
/** Admin "me" response: admin with full role including permissions.
* Defined as an interface (not Omit) so RowDataType's index signature
* does not widen named fields to unknown via mapped types.
*/
export interface AdminMeDataType {
id: string;
createdAt: string;
deletedAt: string | null;
firstName: string;
lastName: string;
phone: string;
avatarUrl?: string | null;
role: RoleItemType;
};
}
export type AdminMeResponseType = BaseResponse<AdminMeDataType>;