- 어떤 타입이어도 상관없는 타입입니다.
- 이걸 최대한 쓰지 않는게 핵심입니다.
- 왜냐면 컴파일 타임에 타입 체크가 정상적으로 이뤄지지 않기 때문입니다.
function returnAny(message: any): void {
console.log(message);
}
returnVoid('아무거나');
Avoid leaking any
- any 는 존재할 수 밖에 없다.
- any 로 지정된 값을 이용해서 새로운 값으로 만들어 사용하는 지점에서 누수를 막아주도록 노력이 필요하다.
문제 상황

해결
