강의

멘토링

커뮤니티

Inflearn Community Q&A

ash's profile image
ash

asked

Getting Started with TypeScript

Function type 2

1:19 에서 interface String

Written on

·

267

1

1:19 에서 interface String 을 만들어도 getParam 에 에러가 발생합니다.

이유가 무엇일까영 

typescript

Answer 2

1

SJ님의 프로필 이미지
SJ
Questioner

에러 내용은 

Property 'getParam' does not exist on type 'String'.

라고 나오고 있는데 ,  맨 위에 export { }; 제거하니깐 에러가 사라지네영 

0

landvibe님의 프로필 이미지
landvibe
Instructor

안녕하세요
타입스크립트 최신 버전에서 해봤는데 에러는 안나네요
에러 메세지를 알려주시면 도움이 될 것 같습니다

ash's profile image
ash

asked

Ask a question