When compiling a C#-dll, in which Generics are used for accessing (for example) an object's properties, the tsc-Compiler throws an error for the generated ts-file.
In my case, this happened for using an Optional in C#, which looked like this
Optional<DateTime>.None
and looked like this in the ts-file
Optional<DateTime>.None
which couldn't be compiled by tsc.
It should compile to Option.None to work.