Skip to content

Commit 42f6585

Browse files
committed
fix: yarn tsc 버그 수정
- 테스트 코드 tsc 검사 제외 - 타입 지정 로직 추가
1 parent 612d409 commit 42f6585

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

backend/mainServer/src/host/host.controller.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ export class HostController {
2424
const hostData = await this.hostService.generateStreamKey(uuid);
2525
res.status(HttpStatus.OK).json({ 'host-data': hostData });
2626
} catch (error) {
27-
if (error.status === 400) {
27+
if ((error as { status: number }).status === 400) {
2828
res.status(HttpStatus.BAD_REQUEST).json({
29-
error: error.response
29+
error: (error as { response: Response }).response
3030
});
3131
}
3232
else {

backend/tsconfig.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88

99
"strict": true,
1010
"skipLibCheck": true,
11-
"baseUrl": "."
12-
}
11+
"baseUrl": ".",
12+
13+
"emitDecoratorMetadata": true,
14+
"experimentalDecorators": true
15+
},
16+
"exclude": ["**/*spec.ts"]
1317
}

0 commit comments

Comments
 (0)