Http://Www.Typescriptlang.Org/Play/#Code/KYOwrgtgBAsqYEkAuwIGcCCUDeAoKBUGAjADT6EYBMuAvrrvNHOMqmgEI4UEdk9QONeriQBPAA7BY8KAF5uhIgC4o4qQHsAZjNYp0GANoBrYGO1rJwCy0T7MAXQDcAjqvXWdttug4mzFh428D6cznQMAMYaIGhIUBDwqrbyipTJIfYYAHQk5EpuunbsHNl8dEA
Вот так нужно?