Skip to content

Commit

Permalink
➕ add : express 모듈의 Request 타입 선언 재정의(#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
jinddings committed Nov 7, 2024
1 parent 9f3ff1d commit 5d5318b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions BE/src/types/express.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { Request as Req } from 'express';
import { UUID } from 'crypto';

declare module 'express' {
interface Request extends Req {
user: {
kakaoId?: number;
userId?: UUID;
};
}
}

0 comments on commit 5d5318b

Please sign in to comment.