인프런 커뮤니티 질문&답변
@ApiResponse 사용시 에러
작성
·
212
0
@ApiResponse 데코레이터를 사용하면 아래처럼 에러가 발생하네요. eslint-disable 말고 해결할 수 있는 방법이 있을까요?
Decorator function return type is 'void | TypedPropertyDescriptor<unknown>' but is expected to be 'void' or 'any'.
Type 'TypedPropertyDescriptor<unknown>' is not assignable to type 'void'.
10 @ApiResponse({
~~~~~~~~~~~~~~
11 status: 200,
~~~~~~~~~~~~~~~~
...
13 type: ReadOnlyCatDto,
~~~~~~~~~~~~~~~~~~~~~~~~~
14 })
답변
답변을 기다리고 있는 질문이에요
첫번째 답변을 남겨보세요!





.png?w=112)