‘Do Machine Learning Models Produce TypeScript Types that Type Check?’

“Type migration is the process of adding types to untyped code to gain assurance at compile time. TypeScript and other gradual type systems facilitate type migration by allowing programmers to start with imprecise types and gradually strengthen them. … Existing machine learning models report a high degree of accuracy in predicting individual TypeScript type annotations. However, in this paper we argue that accuracy can be misleading, and we should address a different question: can an automatic type migration tool produce code that passes the TypeScript type checker?”

Read the paper and see the full list of authors in ArXiv.

View on Site: ‘Do Machine Learning Models Produce TypeScript Types that Type Check?’
,