See JavaScript - .NET and F# compatibility as the same concepts apply to TypeScript.