인프런 영문 브랜드 로고
인프런 영문 브랜드 로고

Inflearn Community Q&A

bi9choi's profile image
bi9choi

asked

Getting started with TypeScript

Start a project

abstract async 부분에서 에러가 나옵니다.

Written on

·

739

1

'async' modifier cannot be used with 'abstract' modifier.ts(1243)

이런 에러가 발생하는데 선생님은 에러가 발생하지 않는군요 어떠한 이유 때문일까요? 

typescript

Answer 1

2

landvibe님의 프로필 이미지
landvibe
Instructor

안녕하세요
typescript 버전이 올라가면서 새로 보여주는 에러 메세지입니다
사실 abstract class 에서는 메서드 타입을 정의할 때 async 키워드가 불필요합니다
그래서 이 경우에는 async 키워드만 지워주시면 됩니다

bi9choi's profile image
bi9choi

asked

Ask a question