Можете подсказать в чем принципиальная разница ?
https://www.typescriptlang.org/play/?jsx=2&ssl=15&ssc=74&pln=15&pc=79#code/JYWwDg9gTgLgBAJQKYEMDG8BmUIjgcilQ3wFgAoYAOxiSk3STgGUYVa4BvOCuPuAB4AuOFQCuIAEZ1e-AJ4jxUmeX5wAXoonSoFAL4UKaCFQDO8WuZGt2TALxdZfYXACMAGidwFcAEyfVfk04AGZ9Q3IAeki4QBEQQGEQQF4QQC4QQDEQQA4QQHkQOEB+EEABEHTE9MAeEEAGEEBWEEAhEDhk0uTAPhBy3PrAbhAmxPjANhBE+rh0wHYQYvKiysAZED64RNK4QHEQSt6KTDEqDGATODQACxQqAHMkABUkcwAKdDRj02gRfAF8OAAfAjl7p-x1fHc4ADcUABsxEgtMooF8IJIAFZCGy0ACU0LYHE4XiIMDEUCojkCaj4ADp8eCIQEcfwANrnS7QAC6cBEvwBSC8BnIzIiaD+KFMpjgR3McCQAloVAAJtzkOgYLiAMK4SBUJA0AA8nD0XxhSAAfFivOZbNZEfYsSTnCIPF41D5-OagiIwti4Kz7Vsdvs4A4zmgLlzoLSCHdHs9XgQPl96YDgTpYW6tcj7WoYJtgKZcaYkDB1ScTlG7FqTrHjTjyZ7KVAaXT-oDrXw9LDYUz9EA