user read
This commit is contained in:
@ -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>;
|
||||
|
Reference in New Issue
Block a user