Skip to content

Commit c6bb63f

Browse files
committed
refactor: adjust auth module implementation
1 parent b44b4fe commit c6bb63f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/auth/auth.controller.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ export interface AuthLoginPayload {
5151
password: string;
5252
}
5353

54-
// We cannot use `User["name"]` here because the type decorators will not
55-
// be copied. (bug)
56-
export interface AuthRegisterPayload extends Pick<User, "name" | "email"> {
54+
export interface AuthRegisterPayload {
55+
name: User["name"];
56+
email: User["email"];
5757
password: UserPassword;
5858
}
5959

0 commit comments

Comments
 (0)