Would be nice if we could write this in C# and make bindings to the TypeScript compiler.
Once we have a functioning generator we could make it generate the bindings instead of writing them by hand.
I think that would be an excellent test. Like bootstrapping a compiler.