кто-нибудь сможет подсказать?
https://www.typescriptlang.org/play?ts=4.3.5#code/C4TwDgpgBAyg9gVwE4GMIHkBGArKBeKAbygG0BrALigGdgkBLAOwHMBdKhRsxuAd0agBfANwAoUJCgBRAB50AhimAQAJgGkIIADxqANFAByAPnyGoEOREYrqNOk2ZQA-GapqxogGacl9OAIsFJQAxeggAGxUtAwheDRBzS2tbWgYWfQAVROVk2ERUDBx9eOyrGygyTThPKAyjAAo4HAglKgz9SpA3TX1ApEVgAEFqJyoYuM0ASipicigmaTl+pVV4nR7DWPijdlqSeNYhIlEoU6gAenOoAAFgagBaemYeJAgTs9fgZAEsbBbgAB0niQcAAtlJGPYINR6iQSH0BsNnC5Ovomn8lORNKwcZMxIJRKIUP5aFBlKSCMR5FQAIz6TBUADkACZGfoUFRPPJwtRoCJCZcoABhQYwKRQGlQerEpCvJRk8AQSZEknAKCeOBwUwIkJhSL1cnAfSMzBsqCMjVwRl40SCy2mYiWpmsoQeW1XEViqDMqW8EEsBWQfTUAAWiEiUEw0GIDLsaUcgmVxMYpMw8iQ2qWA1CERUBuhRvNpptgrTGcpkedjNdoiAA
Добавь перегрузку: https://www.typescriptlang.org/play?ts=4.3.5#code/C4TwDgpgBAyg9gVwE4GMIHkBGArKBeKAbygG0BrALigGdgkBLAOwHMBdKhRsxuAd0agBfANwAoUJCgBRAB50AhimAQAJgGkIIADxqANFAByAPnyGoEOREYrqNOk2ZQA-GapqxogGacl9OAIsFJQAxeggAGxUtABVzS2tbeGQ0LGx9DRA45QSoMk04TyhoowAKOBwIJSpo-TyQN00ASipicigmaTkkRWV1TR1NdM0jdiKSDNYhMW9GX38s7pCwyK0DCF4MrKsbOwYWfVjA7cTEVAwcIcyjnLqCotLy7ErgatrNBpB9QMXgAEFqKhrDZNFqkMjtASyIK9DIDT6GdYZEbVcaaSYiLw+YB+AJdHqhCIqMoVKpQeSMeF1Kjk+HfHr-JzUimNIiiKDsqAAek5UAAAsBqABaejMHhICBsjni4DIASpZ4AOk8SDgAFspIx7BBqCUSCQ6Up-s4XHV9I9nuQ0axWI0xIJRKIUP5aFBlC6CMR5FQAIz6TBUADkACYA-oUFRPPJwtRoBjRNyoABhX4wKRQb1QEpOpDipSu8AQRqO53AKCeOBwUwG4AEyIlN3AfQBzChqAB8twAO2+M8jumYgdwMhqYOntJlNpoOZ3gqlj5yD6agAC0QkSgmGgxH9uwcQiLTsYLsw8iQVbxS0J9e1jbbLe7CePp4966HAZHQA
Спасибо. Даже не подумал об этом варианте :)
Обсуждают сегодня