Skip to content

Commit c36ae76

Browse files
committed
Chore: eslint error 항목 수정
1 parent 3501b47 commit c36ae76

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/decorators/auth-user.decorator.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { createParamDecorator, ExecutionContext } from '@nestjs/common';
22
import { UserAuth } from '../types/userAuth.type';
3+
import { Request } from 'express';
34

45
export const AuthUser = createParamDecorator<UserAuth>(
56
(data: unknown, ctx: ExecutionContext): UserAuth => {

src/types/express.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ import { UserAuth } from './userAuth.type';
33

44
declare module 'express' {
55
export interface Request {
6-
user?: UserAuth;
6+
user: UserAuth;
77
}
88
}

0 commit comments

Comments
 (0)