Skip to content

Commit

Permalink
fix: yarn tsc 버그 수정
Browse files Browse the repository at this point in the history
- 테스트 코드 tsc 검사 제외
- 타입 지정 로직 추가
  • Loading branch information
i3kae committed Nov 13, 2024
1 parent 612d409 commit 42f6585
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions backend/mainServer/src/host/host.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ export class HostController {
const hostData = await this.hostService.generateStreamKey(uuid);
res.status(HttpStatus.OK).json({ 'host-data': hostData });
} catch (error) {
if (error.status === 400) {
if ((error as { status: number }).status === 400) {
res.status(HttpStatus.BAD_REQUEST).json({
error: error.response
error: (error as { response: Response }).response
});
}
else {
Expand Down
8 changes: 6 additions & 2 deletions backend/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@

"strict": true,
"skipLibCheck": true,
"baseUrl": "."
}
"baseUrl": ".",

"emitDecoratorMetadata": true,
"experimentalDecorators": true
},
"exclude": ["**/*spec.ts"]
}

0 comments on commit 42f6585

Please sign in to comment.