Typescript Basics 6 - Type Inference With Reduce

preview_player
Показать описание
In this tutorial, we cover a basic example of how typescript infers your types when you don't define them.
Рекомендации по теме
Комментарии
Автор

Thank you Daniel. I didn't know TS used generics to infer types on reduce. I couldn't figure out how to use reduce, I kept declaring the types in the lambda to no avail and the error message that was being thrown was worse than useless. It's time i hit the docs.

josephjoestar
visit shbcf.ru