본문 바로가기

NEW(스크립트용)

A function whose declared type is neither 'void' nor 'any' must return a value.137 async addPosting(files, req: PostingDto): Promise<CoreOutput>

  async addPosting(files, req: PostingDto): Promise<CoreOutput> {
    const result = new CoreOutput();
    [...]
    }

result를 return 해주지 않아서 생기는 오류였다..

'NEW(스크립트용)' 카테고리의 다른 글

entity cascade  (0) 2022.07.25
any를 활용하여 database 내부 value 값이 array 일 때 filtering  (0) 2022.07.25
특정 페이지에서 새로고침  (0) 2022.07.06
position:sticky  (0) 2022.06.30
video full screen 반응형  (0) 2022.06.29