TypeScript

Let's explain what TypeScript is base on example not some academic definitions.

class ArticleRequestHelper { params: ArticleRequestParams; constructor(params: ArticleRequestParams) { this.params = params; } getArticle: Promise { var articleRequest = new MediaWiki.ArticleRequest(this.params); return articleRequest.article(this.params.title, this.params.redirect, this.params.sections); } }

Let's take step by step.

Class definition
class ArticleRequestHelper