Converting 600k Lines to TypeScript in 72 Hours

Background
Users have been using Lucidchart for a long time to make their diagrams, since 2010 and IE6. And for nearly that long, Lucid has used Google’s Closure Compiler to manage its increasingly sophisticated code base. Closure Compiler is a typechecker and minifier that uses JSDoc annotations in comments to understand type information. As Lucid grew from 5 to 15 to 50 engineers, the tool proved enormously helpful for quality and productivity.Then in 2016, Lucid began experimenting with TypeScript. TypeScript offers more flexible and comprehensive type checking, cleaner syntax, and better IDE support than we could get with Closure-annotated JavaScript.
// Closure JavaScript

/** @const {!goog.events.EventId} */
lucid.model.DocumentEvents.PAGES_CONTENT_CHANGED =
new goog.events.EventId(goog.events.getUniqueId(‘PAGES_CONTENT_CHANGED’));

/**
* @constructor
* @extends {goog.events.Event}
* @final
* @param {!Object<boolean>} pages
* @struct
*/
lucid.model.DocumentEvents.PagesContentChanged = function(pages) {
lucid.model.DocumentEvents.PagesContentChanged.base(
this, ‘constructor’, lucid.model.DocumentEvents.PAGES_CONTENT_CHANGED
);
/** @const {!Object<boolean>} */
this.pages = pages;
};
goog.inherits(lucid.model.DocumentEvents.PagesContentChanged, goog.events.Event);
is equivalent to

Link: https://dzone.com/articles/converting-600k-lines-to-typescript-in-72-hours?utm_medium=feed&utm_source=feedpress.me&utm_campaign=Feed%3A+dzone%2Fwebdev