Rewrite ParserCT API
Implement parseCT for type script