//Bad item.push({ key: key, value: value }); //Good item.push({ key, value });
TS에서는 파라미터 네임을 능동적으로 추론한다.