Customize your site colours, code font, and explore popular documentation pages for TypeScript. Learn about creating and customizing different types, functions, objects, and variable declarations. Discover how TypeScript infers types based on runtime behavior and gain an overview of building a TypeScript web app in just 5 minutes. Explore TSConfig options, classes, primitives, built-in utility types, meta-types, language soundness, and extensions like enums and nominal typing. This content is made with love in Redmond, Boston, SF, and Dublin by Microsoft. Join the TypeScript community for help, blog posts, GitHub repositories, and more. TypeScript extends JavaScript to add safety and tooling, making development more efficient.
https://www.typescriptlang.org/play?#code/C4TwDgpgBAypDGUC8UDkATVUA+aDOqA3AFCiSwIAq4EAPDFBAB7AQB26eFE8AfMrEYt2nNJigB+KGwCuAWwBGEAE5QAXIOasOXVAUlQ8wZQEs2Ac3XSIANxUlSNKAAVTbYADMAgsvN5aAGJywPxIxFARUEHAQtqiAAYApAAkAN5mHiqawjrc8AC+aRlZAEoQRvnxBgDacDzUkPS8ADRQAHQdrmaePn60ZUa8ALrq4ZHRsSJc8UVsmaoA+vkp6XNZDFpTeYWr81ADwJU1dfANdDAt7Z1uPb7+B8OjkVDVQw4eMmzwwCYA9mxQMA3DyBYKTXJGNzmXgACg8wQ00VaHTaAEM7houu5vHdQSEAJRQVJjCLwf54X4AGwgbUpv3MMPiZXgEBMdnQUHhMUhZnMGgARGkufl+VBURwxRioGl0X5KviSPliMQAPQqqAASWAeigZGgeFRmQAhMQgd0PDD+QAJCCUumtRJ4NpQRIcgDULo5KFdbX5rX5AHVfspKeg-VAAKytAAsrQAnAqgA