NEW(스크립트용)

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

maggieH 2022. 7. 26. 09:20
  async addPosting(files, req: PostingDto): Promise<CoreOutput> {
    const result = new CoreOutput();
    [...]
    }

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