added function parseTypescript