Added missing classes to the generator.
Almost working TS definition file.
Working TS definitions.