Updating the typescript parser to prevent circular references