Ребят, почему не получается протипизировать нормально код
https://www.typescriptlang.org/play?ts=4.4.4&ssl=21&ssc=32&pln=1&pc=1#code/KYOwrgtgBAkgLsCAVAngB2FA3gWAFBRQBOAhgO4A0+hJRpKVBUAxmEQM4D2R+AvvnHSZ4iADxIKUALJRgADwQgAJu1gJkQgHxQAvNULTZC0CrWJUGAHSkyUAPxQkUAFz6Dh+YtMiNV2vXtHAG0AXRc3dw9jZVUfC2BLVg5uQKwlEjgSZ0debJBgADdgIgBufHwAMzAQZjgAS04QKEyAa2ApFFEAaSMvWPV4zQAKCE4lYGyugEpsn1FwCAAjYsku7VwmdjI6uGYACygRseAp7AjmEnZhAaFLfxIUbKJgODYmoIBGACYQsqZCC5XMy+BJJLhEJ4vN7YKDpTLZb5QXh-dyA67mW42SGvIhNREogzjCokMAAGzgrn+BmeOLxXyglwZIBQBP4eDZ+GYjXYcAZumaJDaHSGcUx5CmfyAA