мне уже просто интересно стало, а чем обусловлена необходимость в одной функции getData, которая работает и так и так? почему не getData, которая работает с одним экземплятор, а массивы через map(getData) делать? они ж для этого и сделаны
гугл закончил миграцию и перестал использовать Closure Compiler в DevTools
At this moment, we have removed the Closure compiler type checker from our codebase and solely rely on the TypeScript compiler. We are able to write TypeScript-authored files and make use of TypeScript-specific features (such as interfaces, generics, etc...), which helps us on a daily basis. We have increased confidence that the TypeScript compiler will catch type errors and regressions, which is what we’d hoped would happen when we first started work on this migration. This migration, like so many, was slow, nuanced, and oftentimes challenging, but as we yield the benefits, we believe it was worth it.