Да вроде норм)
https://www.typescriptlang.org/play?#code/PTAEHUFMBsGMHsC2lQBd5oBYoCoE8AHSAZVgCcBLA1UABWgEM8BzM+AVwDsATAGiwoBnUENANQAd0gAjQRVSQAUCEmYKsTKGYUAbpGF4OY0BoadYKdJMoL+gzAzIoz3UNEiPOofEVKVqAHSKymAAmvAqbvCwDKgU8F5W7p7ehCTkVDQS2E6gnPCoapzMJmag0k4MANYhoKAAtKAAgqAEjBZoGJAAHkSUyJxZ8po+6f40gniDDN38LqD2jpbYoACqAEoAMsISw6AFOYK1Dc0LLtLw3Z2gPX0UA0OFoNwUAGavkE6DJkgEFO5kUAfWLsJzCeCvVK+DLUYIUQafV4MDpNTj3BjQUAAb0UdQQ0HgZAAXAtUJRiqAAD55diIaSfXi4vIMZAkwRk+HMRkAXzhCLISI6ABF4CUegoeMJUejMTjFLzFDpHGISSKSgBebH4wkkgCM-E4LMgJIARJxafSyCbeUrAdJVaLQJqsdriaATQBHKQmg1G03s8nMa3BBCcQTwdwBAnMAAUDAAlIpQ+HI9GY9JE7UcBhkmQvIhCc4LuwaIUUIxiuwGMxIPxYNB1FUxBc9CIvCaAKLdFltfQm-aAk3gByoADk-BrE1QjgUrmkeFATgLOk5WH0KAQiAewnmZckhOgrlEhlBrUYLDYXG4QTqQA