--

Hi Brendan Mullins, glad that you liked it. In the current example "infer" keyword was used to deduce the type of single item in the array. We have a list of addons and we're extracting the type for a single addon.

I found a few more articles about infer :

https://blog.logrocket.com/understanding-infer-typescript/

https://dev.to/aexol/typescript-tutorial-infer-keyword-2cn

https://javascript.plainenglish.io/typescript-infer-keyword-explained-76f4a7208cb0

--

--

Oleh Baranovskyi
Oleh Baranovskyi

Written by Oleh Baranovskyi

Frontend Lead & Architect | Web community manager https://obaranovskyi.com/

Responses (1)