The purpose of this post is to demonstrate a way to wrap TypeScript modules in F#. This demo wraps only a single `format` function that received TypeScript code and then returns the code formatted. Please see yesterday's
Format TypeScript with v1.4 Language Service and a post from May titled
Embedding Node.js in your .NET F# App. Given that it is possible to
access the TypeScript AST now, it should be possible to generate the F# wrapper.
Output
TypeScript
F#
Pseudo How to Build & Run