Add types parser for generating api files.