user read

This commit is contained in:
2022-10-14 19:18:28 +02:00
parent 5538a042df
commit b2024bf4aa
5 changed files with 42 additions and 13 deletions

View File

@ -1,5 +1,4 @@
import { EntityInfo } from './entity';
import { Hash } from 'crypto';
export type UserInfo = {
uuid: string;
@ -7,7 +6,7 @@ export type UserInfo = {
};
export type UserInfoWithPassword = {
password: Hash;
password: string;
} & UserInfo;
export type User = UserInfo & EntityInfo;
@ -23,6 +22,4 @@ export type LoginUserBody = CreateUserBody;
export type UserCtor = Partial<User>;
export type UserWithPasswordCtor = {
password: string;
} & Partial<Omit<UserWithPassword, 'password'>>;
export type UserWithPasswordCtor = Partial<UserWithPassword>;