Added typescript generation.
Fix for ts generation.