feat: Extend User type to include BaseEntity properties
This commit is contained in:
parent
837cd55a33
commit
b2328b4e0c
@ -1,6 +1,7 @@
|
||||
import { BaseEntity } from "./base";
|
||||
import { UserDto, UserCreateDto, UserUpdateDto } from "./dto";
|
||||
|
||||
export type User = Omit<UserDto, never>;
|
||||
export type User = Omit<UserDto & BaseEntity, never>;
|
||||
|
||||
export const mapUserDtoToUser = (dto: UserDto): User => ({
|
||||
...dto,
|
||||
|
Loading…
x
Reference in New Issue
Block a user