I don't work with typescript much but that code is pretty straightforward, it's just mapping objects to types. A few nested conditions and recursive calls aren't complicated at all. That a decent amount of devs seem to think it is makes me confident in my job security, at least.